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.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- heightnumber | string
- Block size — a number (resolved to "Npx"), a CSS length, a custom-property ref or an aspect-ratio shortcut.
- maxHeightnumber | string
- Maximum block size, same accepted shapes as height.
- maxWidthnumber | string
- Maximum inline size, same accepted shapes as width.
- minHeightnumber | string
- Minimum block size, same accepted shapes as height.
- minWidthnumber | string
- Minimum inline size, same accepted shapes as width.
- widthnumber | 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