Core
Primitive
The foundation of every component. Handles element type, asChild composition, unstyled mode, ref merging, class merging, and event chaining.
Usage
I'm a <p> via Primitive
I'm an <a> via asChild →API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
element | keyof HTMLElementTagNameMap | "div" | The HTML tag to render. |
asChild | boolean | false | Merge all props onto the single child element instead of rendering a wrapper. |
unstyled | boolean | false | Skip attaching data-cui-* attributes so default CSS does not apply. |
ref | Ref<Element> | — | React 19 ref — passed as a plain prop, no forwardRef needed. |