TCols
type
Layout & Sizing
Column span value for OrigamCol — accepts a numeric 1–12 grid column count, "auto" (content-sized), or true (fill remaining space).
TypeScript
Définition
La définition TypeScript telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Acceptées
Valeurs
Valeurs littérales de chaîne acceptées pour ce type. Cliquez sur une valeur pour la copier.
- true
- Column expands to fill all remaining space in the row (flex-grow: 1 equivalent).
- 1
- Spans 1 column out of 12 — approximately 8.33 % of the row width.
- 2
- Spans 2 columns — approximately 16.67 % of the row width.
- auto
- Column shrinks to fit its content — no fixed grid-column span.
- 3
- Spans 3 columns — one quarter of the row (25 %).
- 4
- Spans 4 columns — one third of the row (33.33 %).
- 5
- Spans 5 columns — approximately 41.67 % of the row width.
- 6
- Spans 6 columns — exactly half the row width.
- 7
- Spans 7 columns — approximately 58.33 % of the row width.
- 8
- Spans 8 columns — two thirds of the row (66.67 %).
- 9
- Spans 9 columns — three quarters of the row (75 %).
- 10
- Spans 10 columns — approximately 83.33 % of the row width.
- 11
- Spans 11 columns — approximately 91.67 % of the row width.
- 12
- Spans 12 columns — the full row width.
Écosystème
Utilisé par
Composants et props qui acceptent ce type comme valeur.
Usage
Exemples
Extraits de code prêts à coller utilisant ce type.
Responsive 3-column layout collapsing to 12 on mobile