Slot

Slot is a component that merges its props onto its immediate child.

Usage

import { Slot, Slottable } from "@yamada-ui/react"
<Slot>
  <Slottable />
</Slot>

Multiple Children

Slot only accepts a single child element. If you want to accept multiple children, use Slottable.

Similar Components

For

For is a component used to loop over an array and render a component for each item.

Format

Format is used to format dates, numbers, and bytes according to a specific locale.

Portal

Portal is a component that renders elements outside of the current DOM hierarchy.

ClientOnly

ClientOnly is a component that renders its children only on the client side.

Show

Show is a component that shows or hides its children based on a condition.