lion/packages/choice-input/README.md
Thomas Allmer 396deb2e3b feat: finalize validation and adopt it everywhere
Co-authored-by: Alex Ghiu <alex.ghiu@ing.com>
Co-authored-by: Gerjan van Geest <Gerjan.van.Geest@ing.com>
Co-authored-by: Thijs Louisse <Thijs.Louisse@ing.com>
Co-authored-by: Joren Broekema <joren.broekema@ing.com>
Co-authored-by: Erik Kroes <erik.kroes@ing.com>
2019-11-18 15:30:08 +01:00

16 lines
518 B
Markdown

# ChoiceInputMixin
[//]: # 'AUTO INSERT HEADER PREPUBLISH'
`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