UserCard
The props declared for UserCard, generated from the types @proyecto-viviana/ui ships.
Import
import { UserCard } from "@proyecto-viviana/ui";Props
Differs from @proyecto-viviana/solid-spectrum
meshexists only here.meshSeedexists only here.
| Prop | Type | Default | Description |
|---|---|---|---|
variant | 'primary' | 'secondary' | 'tertiary' | — | Not yet documented |
children | number | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | ((renderProps: CardRenderProps) => JSX.Element) | — | The children of the Card. |
class | string | — | Backward-compatible class alias. Prefer UNSAFE_className for S2 parity. |
slot | string | — | Slot name when used in a Spectrum context. |
ref | HTMLElement | ((el: HTMLElement) => void) | { current?: HTMLElement | null | undefined; } | — | Ref for the rendered card element. |
id* | Key | — | The unique key for the item. solidaria-components |
isDisabled | false | true | — | Whether this item is disabled. solidaria-components |
href | string | — | Link target for standalone navigable cards. |
target | string | — | Not yet documented |
rel | string | — | Not yet documented |
routerOptions | RouterOptions | — | Router options forwarded to client router navigation, when href is provided. solidaria-components |
download | string | boolean | — | Not yet documented |
ping | string | — | Not yet documented solidaria |
referrerPolicy | '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url' | — | Not yet documented solidaria |
onAction | () => void | — | Handler called when the item is activated. solidaria-components |
item | object | — | The item value. solidaria-components |
textValue | string | — | The text value of the item (for accessibility). solidaria-components |
size | 'S' | 'M' | 'L' | 'XL' | 'XS' | 'M' | The size of the Card. |
mesh | 'ambient' | 'signal' | — | The register's woven hex-mesh weave, painted behind the glass fill — `ambient` is the quiet mixed slate/blue/fuchsia weave, `signal` the single-hue detail-yellow one. Only the filled variants take it; `tertiary` and `quiet` have no fill for a weave to sit under. |
meshSeed | number | 42 | Seed for the mesh weave, so neighboring cards don't repeat the same pattern. |
styles | StyleString | — | Spectrum-defined generated classes. |
UNSAFE_className | string | UnsafeClassName | — | Additional CSS class name. Use only as a last resort. |
UNSAFE_style | JSX.CSSProperties | — | Additional inline styles. Use only as a last resort. |
Declared in packages/viviana-ui/src/card/index.tsx.
Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.