Component docs
Loading
import { Slot } from "@pixxl-tools/components";
// In Server Components:
import { Slot } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | — | One element; it receives the merged props. |
ref | Ref<HTMLElement> | — | — |
childrenReactNode
One element; it receives the merged props.
refRef<HTMLElement>
Other props are passed to the root element (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
<Slot className="pixxl-link"><a href="/docs">Docs</a></Slot>