PREDEFINED_DENSITY

const
Layout & Sizing

The list of allowed density values (default, compact, comfortable) used to validate and iterate the density prop across components.

TypeScript

Definition

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

typescript

Entries

Values

All entries in this constant. Click a value to copy it to clipboard.

DENSITY.DEFAULT
Standard padding — balanced for most contexts.
DENSITY.COMPACT
Reduced padding — useful in tables and toolbars.
DENSITY.COMFORTABLE
Increased padding — comfortable for forms and cards.

Ecosystem

Used by

Composables and components that consume this constant.

Usage

Examples

Ready-to-paste code snippets using this constant.

Validating a density value

typescript