LigatureIcon

Data Display
stable

Renders a Material Design ligature icon by placing the icon name as text content inside an element styled with the Material Icons font.

Aperçu

Rendu de l’aperçu en cours…

home

Rendu de l’aperçu en cours…

primary

Rendu de l’aperçu en cours…

danger

Rendu de l’aperçu en cours…

x-large

Structure

Anatomie

Décomposition visuelle de la structure interne du composant avec les appels de classes BEM.

Anatomy of OrigamLigatureIconSchematic of the LigatureIcon component with 2 numbered internal parts. home 1 2 origam-icon origam-icon--ligature
Anatomy of <origam-ligature-icon> — 2 parts: the root element styled with the Material Icons ligature font, and the text content node that holds the ligature name.
1.origam-icon.origam-icon--ligature
Root element. Carries both .origam-icon and .origam-icon--ligature. The SCSS rule sets font-family: "Material Icons", "Material Symbols Outlined" and enables font-feature-settings: "liga".
2.origam-icon--size-{size}
Optional size modifier class (e.g. .origam-icon--size-large). Applied only for named TSize values; numeric sizes use an inline font-size style instead.

API

Props

Toutes les props acceptées par ce composant, avec leur type, valeur par défaut et description.

icon
The ligature name rendered as text content, e.g. "home" for Material Icons. The font resolves the glyph via font feature liga.
color
Text color (foreground) of the icon. Accepts a semantic intent or a CSS color value.
bgColor
Background color of the icon container.
id
string
class
string | Array<string> | object
disabled
boolean
false
Renders the icon in a disabled (muted) visual state.
style
string | Array<string> | object | StyleValue
tag
string
'div'
HTML element rendered at the root. Common alternatives: span, i.
Named size token (x-small, small, default, large, x-large) or a raw number (converted to px). Controls font-size and line-height.
padding
boolean | number | string
paddingTop
boolean | number | string
paddingLeft
boolean | number | string
paddingBottom
boolean | number | string
paddingRight
boolean | number | string
paddingBlock
boolean | number | string
paddingInline
boolean | number | string
paddingInlineStart
boolean | number | string
paddingInlineEnd
boolean | number | string
paddingBlockStart
boolean | number | string
paddingBlockEnd
boolean | number | string
margin
boolean | number | string
marginTop
boolean | number | string
marginLeft
boolean | number | string
marginBottom
boolean | number | string
marginRight
boolean | number | string
marginBlock
boolean | number | string
marginInline
boolean | number | string
marginInlineStart
boolean | number | string
marginInlineEnd
boolean | number | string
marginBlockStart
boolean | number | string
marginBlockEnd
boolean | number | string
border
boolean | number | string | TDirectionBoth | Array<TDirectionBoth>
false
Applies a border around the icon container.
borderTop
boolean | number | string
borderLeft
boolean | number | string
borderBottom
boolean | number | string
borderRight
boolean | number | string
borderBlock
boolean | number | string
borderInline
boolean | number | string
borderInlineStart
boolean | number | string
borderInlineEnd
boolean | number | string
borderBlockStart
boolean | number | string
borderBlockEnd
boolean | number | string
borderColor
string
borderStyle
string
borderTopColor
TColor
borderRightColor
TColor
borderBottomColor
TColor
borderLeftColor
TColor
borderInlineStartColor
TColor
borderInlineEndColor
TColor
borderBlockStartColor
TColor
borderBlockEndColor
TColor
height
number | string
Overrides the icon container height.
maxHeight
number | string
maxWidth
number | string
minHeight
number | string
minWidth
number | string
width
number | string
Overrides the icon container width.
Border-radius token or boolean for the icon container.
roundedTopRight
boolean | number | string
roundedTopLeft
boolean | number | string
roundedBottomLeft
boolean | number | string
roundedBottomRight
boolean | number | string
roundedStartStart
boolean | number | string
roundedStartEnd
boolean | number | string
roundedEndStart
boolean | number | string
roundedEndEnd
boolean | number | string

API

Membres exposés

Propriétés et méthodes accessibles via ref template (defineExpose). Utilisés pour le contrôle programmatique.

<T extends object>(props: T, exclude?: string[]) => Partial<T>
Utility to forward a filtered subset of props to a child component.
Ref<string>
Reactive CSS string generated by useStyle from computed icon styles.
string
Unique style-sheet ID for this instance.
() => void
Injects the computed style sheet into the document.
() => void
Removes the injected style sheet.
Ref<boolean>
True once the style sheet has been injected into the DOM.

Personnalisation

Variables CSS

Propriétés CSS personnalisées exposées par ce composant. Surchargez-les pour personnaliser sans perdre la compatibilité avec le thème.

Icon color. Inherits currentColor by default, overridden by the color prop.
Font size for the default size variant.
Transition duration for color and opacity changes.

Inclusion

Accessibilité

Rôles ARIA, navigation clavier et gestion du focus. Sourcé depuis le template réel du composant.

Notes

  • Decorative icons should carry aria-hidden="true" on the parent wrapper to hide them from assistive technologies.
  • Requires the Material Icons or Material Symbols Outlined font to be loaded in the page. Without the font, the raw ligature text string is shown instead of the glyph.

Fondation

Design tokens

Extrait des tokens de ce composant — les variables --origam-<composant>---<propriété>, déclarées dans sa feuille de tokens tenue à la main, sans étape de build.

Source
color
currentColor
Default icon color. Inherits currentColor so the icon automatically matches surrounding text.
dimension
var(--origam-font__size---md)
Font size for the default size variant.
dimension
var(--origam-font__size---lg)
Font size for the large size variant.
color
var(--origam-color__action--primary---bg)
Icon color when color="primary".
color
var(--origam-color__text---disabled)
Icon color when disabled.

Interactif

Playground

Modifiez les props en direct et observez le composant se mettre à jour. Le snippet de code généré suit vos changements.

Rendu de l’aperçu en cours…

Usage

Exemples

Extraits de code prêts à coller dans vos templates.

Basic ligature icon

vue

Size variants

vue

Écosystème

Famille

Composants du même dossier qui partagent les conventions et se composent souvent ensemble.