DIMENSIONS
enum
Layout & Sizing
Enumeration of the six dimension prop keys supported by IDimensionProps and consumed by useDimension().
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Members
Members
All members of this enum. Click a value to copy it to clipboard.
- DIMENSIONS.HEIGHT
- Maps to the height CSS property.
- DIMENSIONS.MAX_HEIGHT
- Maps to max-height.
- DIMENSIONS.MAX_WIDTH
- Maps to max-width.
- DIMENSIONS.MIN_HEIGHT
- Maps to min-height.
- DIMENSIONS.MIN_WIDTH
- Maps to min-width.
- DIMENSIONS.WIDTH
- Maps to the width CSS property.
Usage
Examples
Ready-to-paste code snippets using this enum.
Iterating over dimension keys in a composable