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

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

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

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Extending IRoundedProps and consuming rounded styles

typescript