Collapsible

Disclosure rows with a chevron that turns in 180ms and a measured height animation; Accordion groups them.

View source
import { Collapsible, Accordion } from "@logicplanes/kaeso-ui";

Props

  • children
    ReactNode

    The content that shows when it is open.

  • defaultOpen
    boolean

    Whether it starts open, when the component keeps its own state.

  • hint
    ReactNode

    Secondary text at the end of the row.

  • onOpenChange
    ((open: boolean) => void)

    Called when it opens or closes.

  • open
    boolean

    Whether it is open, when you control it.

  • title
    ReactNode

    The heading that opens and closes it.