IBorderProps

interface
Border & Shape

Full border contract — shorthand plus per-side, logical (block/inline), color and style props, consumed via useBorder().borderClasses and borderStyles.

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.

border
boolean | number | string | TDirectionBoth | Array<TDirectionBoth>
Shorthand border — true enables all sides, a number sets width in px, a string sets the full CSS value, or a direction / array of directions.
borderTop
boolean | number | string
Top border — true, a px width or a full CSS border value.
borderLeft
boolean | number | string
Left border — true, a px width or a full CSS border value.
borderBottom
boolean | number | string
Bottom border — true, a px width or a full CSS border value.
borderRight
boolean | number | string
Right border — true, a px width or a full CSS border value.
borderBlock
boolean | number | string
Logical block-axis border (top + bottom in horizontal writing modes).
borderInline
boolean | number | string
Logical inline-axis border (left + right in horizontal writing modes).
borderInlineStart
boolean | number | string
borderInlineEnd
boolean | number | string
borderBlockStart
boolean | number | string
borderBlockEnd
boolean | number | string
borderColor
string
Border color — a CSS color value or a design token name.
borderStyle
string
Border style — solid, dashed, dotted, etc.
borderTopColor
TColor
borderRightColor
TColor
borderBottomColor
TColor
borderLeftColor
TColor
borderInlineStartColor
TColor
borderInlineEndColor
TColor
borderBlockStartColor
TColor
borderBlockEndColor
TColor

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Card with dashed primary border

vue