Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enhance radio and checkbox wrappers and docs
- Loading branch information
Showing
4 changed files
with
81 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
```html | ||
<!-- default rendering --> | ||
<input type="checkbox" class="k-checkbox k-checkbox-md k-rounded-md" /> | ||
|
||
<!-- canonical rendering --> | ||
<input type="checkbox" | ||
class=" | ||
k-checkbox | ||
k-checkbox-${size} | ||
k-rounded-${rounded} | ||
${checked && 'k-checked'} | ||
${indeterminate && 'k-indeterminate'} | ||
${valid && 'k-valid'} | ||
${invalid && 'k-invalid'} | ||
${required && 'k-required'} | ||
${disabled && 'k-disabled'} | ||
" | ||
disabled={disabled} | ||
/> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
```html | ||
<!-- default rendering --> | ||
<input type="radio" class="k-radio k-radio-md k-rounded-md" /> | ||
|
||
<!-- canonical rendering --> | ||
<input type="radio" | ||
class=" | ||
k-radio | ||
k-radio-${size} | ||
k-rounded-${rounded} | ||
${checked && 'k-checked'} | ||
${valid && 'k-valid'} | ||
${invalid && 'k-invalid'} | ||
${required && 'k-required'} | ||
${disabled && 'k-disabled'} | ||
" | ||
disabled={disabled} | ||
/> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters