IRoundedProps

interface
Shape

Corner-radius contract for every component whose surface can be rounded. Supports named token rungs (small/default/large/…), a boolean shorthand for the default token, or raw CSS border-radius values.

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.

rounded
boolean | number | string | TRounded | null | undefined
Corner-radius selector: a TRounded named rung emits --rounded-{name} class; boolean true (or empty string) emits --rounded; a number or CSS string is applied as a raw border-radius via inline style.
roundedTopRight
boolean | number | string
Applies rounding only to the top-right corner. Accepts the same shapes as rounded.
roundedTopLeft
boolean | number | string
Applies rounding only to the top-left corner. Accepts the same shapes as rounded.
roundedBottomLeft
boolean | number | string
Applies rounding only to the bottom-left corner. Accepts the same shapes as rounded.
roundedBottomRight
boolean | number | string
Applies rounding only to the bottom-right corner. Accepts the same shapes as rounded.
roundedStartStart
boolean | number | string
roundedStartEnd
boolean | number | string
roundedEndStart
boolean | number | string
roundedEndEnd
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.

Extending IRoundedProps and consuming rounded styles

typescript