only allow item inside root

This commit is contained in:
Lendemor 2025-01-27 18:29:53 +01:00
parent 709c6dedf2
commit 8bf206e378

View File

@ -85,6 +85,8 @@ class RadioCardsItem(RadixThemesComponent):
# When true, indicates that the user must check the radio item before the owning form can be submitted.
required: Var[bool]
_valid_parents: list[str] = ["RadioCardsRoot"]
class RadioCards(SimpleNamespace):
"""RadioCards components namespace."""