ICardProps
Full prop surface for OrigamCard — extends the entire cross-cutting DS commons (tag, color, bgColor, border, density, dimension, elevation, loader, location, position, rounded, margin, padding, link, ripple, adjacent, active) plus card-specific props (disabled, flat, hover, image, link, subtitle, text, title, type).
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Héritage
Hérite de
Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- contentDisplayTCardContentDisplay
- disabledboolean
- Puts the card in a disabled state — mutes pointer events and reduces visual opacity.
- flatboolean
- Removes the elevation shadow, rendering the card flush with its container.
- hoverboolean
- Force-enables the hover visual state (shadow lift + cursor pointer) without waiting for pointer entry.
- imagestring
- URL of an image rendered as the card background.
- linkboolean
- Renders the card as a navigable link surface (adds cursor pointer and focuses via href/to).
- subtitlestring | number
- Secondary text line rendered below the title in the built-in header.
- textstring | number
- Body text rendered inside the built-in card text area.
- titlestring | number
- Headline text rendered in the built-in card header.
- typeTCardType
- Card type variant — controls layout and semantic role (e.g. outlined, tonal, elevated).
- titleIdstring
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Feature card with color, elevation and image