Installation
1
Add Component
Copy the code snippet below into you components folder.
2
Integrate Recipe
Integrate this recipe in to your Panda config.
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
| Prop | Default | Type | 
|---|---|---|
| variant | 'solid' | 'solid' | 'surface' | 'subtle' | 'outline' | 'plain' | 
| size | 'md' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' |