Skip to content
Magma Design System
Text<mds-text>Generated from @maggioli-design-system/magma@2.3.0dist/documentation.json. Encapsulation: shadow.
Magma components are web components: custom elements you write like HTML tags, with any framework or without one. Props configure them, events tell you what happened, methods are functions you call on the element and slots take the content you put inside it.
Props
Set a prop as an HTML attribute in the markup, or as a property from JavaScript. The Attribute column gives the name of the attribute, a dash when it is the same as the property; props without one, such as arrays and functions, are set from JavaScript only. To turn a boolean attribute off, remove it: never write disabled="false".animation - none | yugop | undefinednoneSpecifies if the text is animated when it is rendered
tag - abbr | address | article | b | bdo | blockquote | cite | code | dd | del | details | dfn | div | dl | dt | em | figcaption | h1 | h2 | h3 | h4 | h5 | h6 | i | ins | kbd | label | legend | li | mark | ol | p | pre | q | rb | rt | ruby | s | samp | small | span | strong | sub | summary | sup | time | u | ul | varSpecifies the HTML tag of the element
text - string | undefinedSpecifies the text string to the component instead of passing an HTML node
truncate - all | none | word | undefinedSpecifies if the text shoud be truncated or should behave as a normal text
typography - action | caption | detail | h1 | h2 | h3 | h4 | h5 | h6 | hack | label | option | paragraph | snippet | tipdetailSpecifies the font typography of the element
variant - code | info | read | title | undefinedSpecifies the variant for typography
Slots
Slots take the content you write between the tags of the component. The default slot, the one without a name, accepts plain text, unless its description says otherwise.(default)Add text string to this slot, avoid to add HTML elements or components here.
No slot name