@fluixi-ui/surface
v0.1.0-alpha.17
Published
Headless elevated-container primitive for Fluixi UI
Readme
@fluixi-ui/surface
A headless elevated-container primitive for Fluixi UI. Sets background, radius and
(opt-in) elevation + border via data-*, driven entirely by design tokens — the
foundation other containers build on (cards, panels, popovers, sheets).
npm i @fluixi-ui/surfaceimport { Surface } from '@fluixi-ui/surface';
<Surface elevation={2} radius="lg" bordered>…</Surface>
<Surface as="section" elevation={0}>flat panel</Surface>Props
| Prop | Type | Default | Notes |
| --- | --- | --- | --- |
| as | element / component | "div" | What to render. |
| elevation | 0–4 | 1 | Shadow depth, flat → floating. |
| radius | none | sm | md | lg | xl | full | lg | Corner radius token. |
| bordered | boolean | false | Hairline border. |
All other props are forwarded to the rendered element. Styling is theme-driven, so
it follows data-theme and data-accent automatically. Compose with
@fluixi-ui/interactions for a pressable/hoverable surface.
