CloseButton
CloseButton
is a component used primarily to trigger the close functionality of a component.
Theming
The CloseButton
is a single part component.
CloseButton
inherits the style from Button.
If you want to change the style of the component, please check here.
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"] })
Edit this page on GitHub