Sheet
A panel from the edge that keeps the list behind it readable: the request inspector, details.
<Sheet
trigger={<Button>Open request</Button>}
title="POST /v1/messages"
subtitle="req_01JAR4X2KQ"
size="md"
modal={false}
actions={<Button variant="ghost" size="sm" icon={icons.copy} aria-label="Copy request id" />}
>
{body}
</Sheet>import { Sheet } from "@logicplanes/kaeso-ui";Props
actionsReactNodeHeader actions before the close circle.
childrenReactNodeThe sheet's content.
defaultOpenbooleanWhether it starts open, when the component keeps its own state.
footerReactNodeContent at the bottom, usually actions.
inlinebooleanRender without a portal, for documentation and state matrices.
modalbooleanfalsekeeps 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.
openbooleanWhether 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.
subtitleReactNodeA mono subtitle for ids, shown whole:
req_01J….titleReactNodeThe sheet's heading, also its accessible name; a long one wraps.
triggerReactElement<unknown, string | JSXElementConstructor<any>>The element that opens it.