Component docs
Loading
import { Affix } from "@pixxl-tools/components";
// In Server Components:
import { Affix } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
offset | number | string | — | — |
placement | Extract<PixxlPlacement, "top" | "bottom"> | — | Where it sits relative to its anchor (start/end follow the writing direction). |
offsetnumber | string
placementExtract<PixxlPlacement, "top" | "bottom">
Where it sits relative to its anchor (start/end follow the writing direction).
<Affix offset="var(--pixxl-space-2)">Toolbar</Affix>