- Home
- Primitives
- Sheet
- Examples
Sheet
Basic sheet example demonstrating core behavior.
Examples
import * as Sheet from "@solidiom/sheet"
;<Sheet.Root>Sheet content</Sheet.Root>Navigation
Side panel content with trapped focus. Press Escape to close.
View source
export function SheetExample(props: SheetExampleProps) {
const copy = () => COPY[props.locale]
return (
<div ref={(el) => el.setAttribute("data-hydrated", "true")} class="sheet-example">
<Sheet.Root>
<Sheet.Trigger>{copy().trigger}</Sheet.Trigger>
<Sheet.Content>
<Sheet.Title>{copy().title}</Sheet.Title>
<Sheet.Description>{copy().content}</Sheet.Description>
<Sheet.Close>{copy().close}</Sheet.Close>
</Sheet.Content>
</Sheet.Root>
</div>
)
}