IPaddingProps

interface
Layout & Sizing

Padding spacing contract — all four sides plus logical block/inline shorthands. Values map to the DS spacing scale when a number or scale key is passed, or accept any CSS length string.

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.

padding
boolean | number | string
Shorthand padding applied to all four sides. A number maps to the DS spacing scale; a string is used verbatim; true applies the default spacing unit.
paddingTop
boolean | number | string
Top padding. Accepts the same value shapes as `padding`.
paddingLeft
boolean | number | string
Left padding (physical). Accepts the same value shapes as `padding`.
paddingBottom
boolean | number | string
Bottom padding. Accepts the same value shapes as `padding`.
paddingRight
boolean | number | string
Right padding (physical). Accepts the same value shapes as `padding`.
paddingBlock
boolean | number | string
Logical block-axis shorthand (top + bottom in horizontal writing modes).
paddingInline
boolean | number | string
Logical inline-axis shorthand (left + right in horizontal writing modes).
paddingInlineStart
boolean | number | string
paddingInlineEnd
boolean | number | string
paddingBlockStart
boolean | number | string
paddingBlockEnd
boolean | number | string

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Consuming padding props via usePadding

typescript