v-button
Last updated
Last updated
The v-button
component is used for all buttons in the application. It supports text buttons, text buttons with an icon, and icon buttons.
Import ButtonModule
from @valtimo/user-interface
in the module which includes your component. Use v-button
in your component template code:
sample.component.html
Property | Type | Required | Default | Description |
---|---|---|---|---|
'primary'
| 'secondary'
| 'success'
| 'text'
| 'icon-danger'
| 'danger'
| 'icon-grey'
| 'icon-danger-small'
| 'icon-grey-small'
type
ButtonType
*
no
'primary'
The type of the button displayed. Types with icon
in the name will not display any text.
Paragraph
Text