Leave Yamada UI a star

Star
Yamada UIYamada UIv1.7.2

CloseButton

CloseButton is a component used primarily to trigger the close functionality of a component.

Source@yamada-ui/close-button

Theming

The CloseButton is a single part component.

export const CloseButton: ComponentStyle<"CloseButton"> = mergeStyle(Button, {
baseStyle: {
rounded: "md",
_active: {
bg: ["blackAlpha.200", "whiteAlpha.200"],
},
_focusVisible: {
boxShadow: "outline",
},
_hover: {
bg: ["blackAlpha.100", "whiteAlpha.100"],
},
},
sizes: {
sm: {
boxSize: 6,
fontSize: "2xs",
},
md: {
boxSize: 8,
fontSize: "xs",
},
lg: {
boxSize: 10,
fontSize: "md",
},
},
defaultProps: {
size: "md",
},
})({ omit: ["variants", "sizes", "defaultProps"] })
Copied!

Edit this page on GitHub

PreviousMotionNextFor