GRID_DEFAULTS
const
Layout & Sizing
Default prop values used by OrigamGrid and its sub-components. Exposes the baseline settings (columns: auto, rows: auto, gap: md, autoFlow: row, alignItems: stretch, justifyItems: stretch, inline: false, tag: div) so consumers can reference them when authoring wrappers.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Entries
Values
All entries in this constant. Click a value to copy it to clipboard.
- columns: 'auto' as string
- rows: 'auto' as string
- gap: 'md' as TGridGapSize
- autoFlow: 'row' as TGridAutoFlow
- alignItems: 'stretch' as TGridPlaceItems
- justifyItems: 'stretch' as TGridPlaceItems
- inline: false
- Renders as block (display: grid) by default.
- tag: 'div'
- Default HTML tag for the grid root element.
Ecosystem
Used by
Composables and components that consume this constant.
OrigamGrid
GRID_AUTO_FLOWS
Usage
Examples
Ready-to-paste code snippets using this constant.
Referencing defaults in a wrapper component