Skip to content
Magma Design System
Radial menu<mds-radial-menu>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".angleEndangle-endnumber360Specifies the ending angle of the menu
angleStartangle-startnumber0Specifies the starting angle of the menu
backdrop - boolean | undefinedfalseSpecifies if the component has a backdrop background
direction - clockwise | counterclockwiseclockwiseSpecifies the direction of the menu elements
disc - boolean | undefinedSpecifies if the menu has a disc beneath or not
icon - string | undefinedThe icon displayed in the button
interaction - click | rightclickclickSpecifies how to open the menu
opened - boolean | undefinedSpecifies if the menu is opened or not
radius - number5Specifies the radius of the menu
size - lg | md | sm | xllgSpecifies the size for the button
tone - outline | strong | text | weak | undefinedstrongSpecifies the tone variant for the button
variant - ai | apple | dark | error | google | info | light | primary | secondary | success | warning | undefineddarkSpecifies the color variant for the button
Slots
Slots take the content you write between the tags of the component. Content for a named slot goes on a direct child with the name of the slot in its slot attribute, such as slot="item".itemAdd mds-radial-menu-item elements or components to this slot.