CloseButton
The CloseButton is a IconButton with close icon.
Import
Importimport { CloseButton } from '@backyard-ui/core';Usage
UsageSize
SizeUse the size prop to increase the visual size.
Radius
RadiusUse the radius prop to increase the border-radius.
API Reference
API Reference- radiusDescription The `border-radius` propertyType
"sm" | "md" | "lg" | "xl" | "2xl" | "full"Defaultxl - appearanceDescription The Button appearanceType
"success" | "critical" | "info" | "warning" | "neutral" | "primary" | "secondary" | "tertiary"Defaultprimary - variantDescription The variant is used to change the visual communication.Type
"solid" | "subtle" | "outline" | "ghost"Defaultsolid - isLoadingDescription Set loading state.Type
boolean - sizeDescription The Button sizeType
"xs" | "sm" | "md"Defaultsm - isDisabledDescription Set disabled state.Type
boolean - ariaLabelDescription A11y: A label that describes the buttonType
string