Park UI

Close Button

A button component for closing dialogs, modals, or overlays.

Installation

Usage

Examples

Sizes

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

Variants

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

Custom Icon

Pass the custom icon to the children of the close button component.

Props

PropDefaultType
variant'solid'
'solid' | 'surface' | 'subtle' | 'outline' | 'plain'
size'md'
'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'