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".

Similar Components

Button

Button is an interactive component that allows users to perform actions such as submitting forms and toggling modals.

IconButton

IconButton is a component that displays an icon within a button.

FileButton

FileButton is a button component used for users to select files.

Toggle

Toggle is a component that has two states: on or off.

Uses Components & Hooks

Used By Components & Hooks