TCodeLang
type
Data Display
Syntax-highlighting language identifiers supported by OrigamCode — a curated subset of shiki grammars bundled with the design system.
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.
- html
- HTML — tags, attributes and inline scripts/styles.
- plaintext
- No syntax highlighting — raw text output.
- vue
- Vue SFC — template, script and style blocks highlighted.
- ts
- TypeScript — type annotations, generics and interfaces.
- js
- JavaScript — ES2022+ syntax supported.
- tsx
- TypeScript JSX — React TSX files.
- jsx
- JavaScript JSX — React JSX files.
- scss
- SCSS — variables, nesting and mixins highlighted.
- css
- CSS — properties, selectors and at-rules.
- json
- JSON — keys, values and nested structures.
- bash
- Bash / shell script — commands, flags and pipes.
- xml
- XML — elements, attributes and CDATA sections.
- yaml
- YAML — keys, values, anchors and multi-line strings.
- md
- Markdown — headings, emphasis, links and code fences.
Écosystème
Utilisé par
Composants et props qui acceptent ce type comme valeur.
Usage
Exemples
Extraits de code prêts à coller utilisant ce type.
Code block with TypeScript highlighting