Leave Yamada UI a star

Star
Yamada UIYamada UIv1.5.3

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: {
_hover: {
bg: ["blackAlpha.100", "whiteAlpha.100"],
},
_active: {
bg: ["blackAlpha.200", "whiteAlpha.200"],
},
_focusVisible: {
boxShadow: "outline",
},
},
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

PreviousMotionNextPortal