Airy

Airy is a component that provides a smooth animation to switch between two elements.

Usage

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

Change the Duration

To change the duration, set a numerical value (seconds) to duration.

Delay

If you want to delay the switch, set a numerical value (seconds) to delay.

Disable

To disable, set disabled to true.

Read-Only

To ready-Only, set readOnly to true.

Control

Props

Accessibility

The Airy follows the WAI-ARIA - Button Pattern for accessibility.

When aria-label is set, it will be read aloud by screen readers.

<Airy
  aria-label="Menu"
  from={<MenuIcon fontSize="2xl" />}
  to={<XIcon fontSize="2xl" />}
/>

Keyboard Navigation

KeyDescriptionState
Enter, SpaceWhen element has focus, activates it.-