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.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- roundedboolean | 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.
- roundedTopRightboolean | number | string
- Applies rounding only to the top-right corner. Accepts the same shapes as rounded.
- roundedTopLeftboolean | number | string
- Applies rounding only to the top-left corner. Accepts the same shapes as rounded.
- roundedBottomLeftboolean | number | string
- Applies rounding only to the bottom-left corner. Accepts the same shapes as rounded.
- roundedBottomRightboolean | number | string
- Applies rounding only to the bottom-right corner. Accepts the same shapes as rounded.
- roundedStartStartboolean | number | string
- roundedStartEndboolean | number | string
- roundedEndStartboolean | number | string
- roundedEndEndboolean | 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