Add shoelace radio component (#1961)

* add shoelace radio component

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Askat
2024-02-01 11:48:18 -06:00
committed by GitHub
parent d370450324
commit 9edb3185f2
2 changed files with 18 additions and 0 deletions

View File

@@ -374,6 +374,19 @@ class Icon(ShoeBase):
)
class Radio(ShoeBase):
tag = "sl-radio"
value = js_property("value")
size = js_property("size")
disabled = js_property("disabled")
update_complete = js_property("updateComplete")
def __init__(self, value=None, size=None, disabled=None, style=None, **kwargs):
super().__init__(
value=value, size=size, disabled=disabled, style=style, **kwargs
)
# Load resources...
CSS = """
.card-overview {