Component docs
Loading
"use client";
import { Backdrop } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | — | Open state (controlled). |
defaultOpen | boolean | — | Initial open state when uncontrolled. |
onOpenChange | (open: boolean) => void | — | Called with the next open state. |
openboolean
Open state (controlled).
defaultOpenboolean
Initial open state when uncontrolled.
onOpenChange(open: boolean) => void
Called with the next open state.
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<Backdrop open={false} />