Sheet

A panel from the edge that keeps the list behind it readable: the request inspector, details.

View source
import { Sheet } from "@logicplanes/kaeso-ui";

Props

  • actions
    ReactNode

    Header actions before the close circle.

  • children
    ReactNode

    The sheet's content.

  • defaultOpen
    boolean

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

  • footer
    ReactNode

    Content at the bottom, usually actions.

  • inline
    boolean

    Render without a portal, for documentation and state matrices.

  • modal
    boolean

    false keeps the page behind interactive, for an inspector: a press on the page leaves the sheet open, so the next row can fill it; Escape and the close circle close it.

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

    Called when it opens or closes.

  • open
    boolean

    Whether it is open, when you control it.

  • side
    "bottom" | "left" | "right"

    The edge it slides in from.

  • size
    "md" | "sm" | "lg"

    The sheet's width from the side; a sheet from the bottom takes its content's height and ignores it.

  • subtitle
    ReactNode

    A mono subtitle for ids, shown whole: req_01J….

  • title
    ReactNode

    The sheet's heading, also its accessible name; a long one wraps.

  • trigger
    ReactElement<unknown, string | JSXElementConstructor<any>>

    The element that opens it.