ISizeProps

interface
Layout & Sizing

Named-size contract for icon-sized and token-driven components. Accepts a TSize variant name (x-small, small, default, large, x-large) or a raw number resolved to pixels.

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.

size
TSize | number
Component size — a TSize token name maps to a predefined token rung; a plain number is converted to px. Both paths are consumed via useSize().sizeStyles.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Extending ISizeProps and consuming size styles

typescript