Skip to Content
DocsResourcesPricingShowcase

Close Button

Used to trigger closing of dialogs, panels, and other components.

SourceStorybookRecipe

import { CloseButton } from '@saas-ui/react/close-button'
<CloseButton />

Use the size prop to change the size of the close button.

Use the variant prop to change the appearance of the close button.

Use the children prop to change the icon of the close button.

PropDefaultType
colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

The color palette of the component

size 'md'
'xs' | 'sm' | 'md' | 'lg'

The size of the component

variant 'solid'
'solid' | 'subtle' | 'surface' | 'outline' | 'ghost' | 'plain'

The variant of the component

loading
boolean

loadingText
React.ReactNode

Previous

Clipboard

Next

Collapsible