diff --git a/src/components/NcActionButton/NcActionButton.vue b/src/components/NcActionButton/NcActionButton.vue index e1c904609b..8808386c08 100644 --- a/src/components/NcActionButton/NcActionButton.vue +++ b/src/components/NcActionButton/NcActionButton.vue @@ -171,18 +171,51 @@ export default { ``` -You can set an "pressed" state, for example you have a toggle button, in this example the "fullscreen" button: +### With different model behavior +By default the button will act like a normal button, but it is also possible to change the behavior to a toggle button, checkbox button or radio button. + +For example to have the button act like a toggle button just set the `modelValue` property to the toggle state: + +```vue + + +``` + +Another example would be using it with checkbox semantics, to enable or disable features. +This also allows tri-state behavior (`true`, `false`, `null`) in which case `aria-checked` will be either `true`, `false` or `mixed`. ```vue