IDefault

interface
Theme & Defaults

Shape of the defaults map consumed by OrigamDefaultsProvider and the createOrigam theme component layer. Keys are "global" (applies to every component) or a component kebab-case name (e.g. "origam-btn"). Values are plain prop records.

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.

global
Record<string, unknown>
Default props applied to every component in the subtree (e.g. { density: "comfortable" }).

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Providing component defaults via createOrigam theme

typescript