22 lines
585 B
Markdown
22 lines
585 B
Markdown
[//]: # 'AUTO INSERT HEADER PREPUBLISH'
|
|
|
|
# ChoiceInputMixin
|
|
|
|
```js script
|
|
export default {
|
|
title: 'Forms/System/Choice',
|
|
};
|
|
```
|
|
|
|
`lion-choice-input` mixin is a fundamental building block of form controls which return a checked-state. It is used in:
|
|
|
|
- [lion-checkbox](../checkbox/)
|
|
- [lion-option](../option/)
|
|
- [lion-radio](../radio/)
|
|
- [lion-switch](../switch/)
|
|
|
|
## Features
|
|
|
|
- Get or set the value of the choice - `choiceValue()`
|
|
- Get or set the modelValue (value and checked-state) of the choice - `.modelValue`
|
|
- Pre-select an option by setting the `checked` boolean attribute
|