IDimensionProps

interface
Layout & Sizing

Sizing contract — height/width plus their min/max bounds, consumed via useDimension().dimensionStyles.

TypeScript

Definition

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

typescript

API

Properties

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

height
number | string
Block size — a number (resolved to "Npx"), a CSS length, a custom-property ref or an aspect-ratio shortcut.
maxHeight
number | string
Maximum block size, same accepted shapes as height.
maxWidth
number | string
Maximum inline size, same accepted shapes as width.
minHeight
number | string
Minimum block size, same accepted shapes as height.
minWidth
number | string
Minimum inline size, same accepted shapes as width.
width
number | string
Inline size — a number (resolved to "Npx"), a CSS length, a custom-property ref or an aspect-ratio shortcut.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Extending the interface and consuming the styles

typescript