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
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.
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.
- paddingboolean | 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.
- paddingTopboolean | number | string
- Top padding. Accepts the same value shapes as `padding`.
- paddingLeftboolean | number | string
- Left padding (physical). Accepts the same value shapes as `padding`.
- paddingBottomboolean | number | string
- Bottom padding. Accepts the same value shapes as `padding`.
- paddingRightboolean | number | string
- Right padding (physical). Accepts the same value shapes as `padding`.
- paddingBlockboolean | number | string
- Logical block-axis shorthand (top + bottom in horizontal writing modes).
- paddingInlineboolean | number | string
- Logical inline-axis shorthand (left + right in horizontal writing modes).
- paddingInlineStartboolean | number | string
- paddingInlineEndboolean | number | string
- paddingBlockStartboolean | number | string
- paddingBlockEndboolean | 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.
Consuming padding props via usePadding