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

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

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.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Locking a video embed to 16:9 with IResponsiveProps

html