Skip to main content
PROYECTOVIVIANA

AssetCard

The props declared for AssetCard, generated from the types @proyecto-viviana/ui ships.

Import

import { AssetCard } from "@proyecto-viviana/ui";

Props

Differs from @proyecto-viviana/solid-spectrum
  • mesh exists only here.
  • meshSeed exists only here.
Props for AssetCard in @proyecto-viviana/ui
PropTypeDefaultDescription
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | ((renderProps: CardRenderProps) => JSX.Element)—The children of the Card.
classstring—Backward-compatible class alias. Prefer UNSAFE_className for S2 parity.
slotstring—Slot name when used in a Spectrum context.
refHTMLElement | ((el: HTMLElement) => void) | { current?: HTMLElement | null | undefined; }—Ref for the rendered card element.
id*Key—The unique key for the item. solidaria-components
isDisabledfalse | true—Whether this item is disabled. solidaria-components
hrefstring—Link target for standalone navigable cards.
targetstring—Not yet documented
relstring—Not yet documented
routerOptionsRouterOptions—Router options forwarded to client router navigation, when href is provided. solidaria-components
downloadstring | boolean—Not yet documented
pingstring—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
itemobject—The item value. solidaria-components
textValuestring—The text value of the item (for accessibility). solidaria-components
size'S' | 'M' | 'L' | 'XL' | 'XS''M'The size of the Card.
variant'primary' | 'secondary' | 'quiet' | 'tertiary''primary'The visual style 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.
meshSeednumber42Seed for the mesh weave, so neighboring cards don't repeat the same pattern.
stylesStyleString—Spectrum-defined generated classes.
UNSAFE_classNamestring | UnsafeClassName—Additional CSS class name. Use only as a last resort.
UNSAFE_styleJSX.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.