Component docs
Loading
import { Float } from "@pixxl-tools/components";
// In Server Components:
import { Float } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
placement | PixxlPlacement | bottom-end | Side and alignment (default bottom-end). start / end follow the writing direction; left / right are physical. |
elevation | PixxlElevation | — | — |
placementdefault bottom-endPixxlPlacement
Side and alignment (default bottom-end). start / end follow the writing direction; left / right are physical.
elevationPixxlElevation
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<div style={{ position: "relative" }}>
<Button>Anchor</Button>
<Float placement="bottom-start">Panel</Float>
</div>