UNPKG

@mozaic-ds/vue

Version:

Mozaic-Vue is the Vue.js implementation of ADEO Design system

25 lines (18 loc) 1.34 kB
# MButton Buttons are key interactive elements used to perform actions and can be used as standalone element, or as part of another component. Their appearance depends on the type of action required from the user and the context in which they are used. ## Props | Name | Description | Type | Default | | --- | --- | --- | --- | | `appearance` | Defines the visual style of the button. | `"standard"` `"inverse"` `"accent"` `"danger"` | `"standard"` | | `size` | Determines the size of the button. | `"s"` `"m"` `"l"` | `"m"` | | `disabled` | If `true`, disables the button, making it non-interactive. | `boolean` | - | | `ghost` | If `true`, applies a "ghost" style to the button, typically a transparent background with a border. | `boolean` | - | | `outlined` | If `true`, the button gets an outlined style, usually with just the border and no solid background. | `boolean` | - | | `iconPosition` | Controls the positioning of an icon in the button. | `"left"` `"right"` `"only"` | - | | `type` | Specifies the button's HTML `type` attribute. | `"button"` `"reset"` `"submit"` | `"button"` | | `isLoading` | If `true`, a loading state is displayed. | `boolean` | - | ## Slots | Name | Description | | --- | --- | | `default` | The content displayed in the button. | | `icon` | Use this slot to insert an icon for the Button. |