IResponsiveProps

interface
Layout

Props for <OrigamResponsive>. Merges dimension, commons, padding, margin, border, and rounded surfaces with three responsive-specific props: aspectRatio (locks the intrinsic ratio), contentClass (targets the inner wrapper), and inline (switches the outer element between block and inline-block).

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.

typescript

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.

aspectRatio
string | number
Intrinsic aspect-ratio expressed as a number (16/9 = 1.777) or a CSS fraction string ("16/9"). Applied via the CSS aspect-ratio property on the wrapper.
contentClass
string
Additional CSS class applied to the inner content wrapper, not the outer root element. Useful to style the content independently from the outer responsive shell.
inline
boolean
Renders the outer element as inline-block instead of block, allowing the component to flow alongside inline content.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Locking a video embed to 16:9 with IResponsiveProps

html