CloseButton

CloseButton is a component used primarily to trigger the close functionality of a component.

Usage

import { CloseButton } from "@yamada-ui/react"
<CloseButton />

Change Variant

Change Size

Change Color Scheme

Change Shape

To rounded corners, set fullRounded to true.

Disable

To disable, set disabled to true.

Props

Accessibility

CloseButton follows the WAI-ARIA - Button Pattern for accessibility.

Keyboard Navigation

KeyDescriptionState
Space, EnterWhen element has focus, activates it.-

ARIA Roles and Attributes

ComponentRoles and AttributesUsage
CloseButtonaria-labelSets to "Close".