Component docs
Loading
import { AbsoluteCenter } from "@pixxl-tools/components";
// In Server Components:
import { AbsoluteCenter } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
axis | "both" | "horizontal" | "vertical" | — | — |
axis"both" | "horizontal" | "vertical"
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
<AbsoluteCenter>...</AbsoluteCenter>