-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
40 changed files
with
2,631 additions
and
590 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
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
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 |
---|---|---|
|
@@ -81,6 +81,7 @@ | |
"select", | ||
"slider", | ||
"spacer", | ||
"spinner", | ||
"stack", | ||
"switch", | ||
"table", | ||
|
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
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
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
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
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
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
48 changes: 48 additions & 0 deletions
48
reflex/components/radix/themes/components/checkbox_cards.py
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,48 @@ | ||
"""Components for the Radix CheckboxCards component.""" | ||
|
||
from types import SimpleNamespace | ||
from typing import Literal, Union | ||
|
||
from reflex.vars import Var | ||
|
||
from ..base import LiteralAccentColor, RadixThemesComponent | ||
|
||
|
||
class CheckboxCardsRoot(RadixThemesComponent): | ||
"""Root element for a CheckboxCards component.""" | ||
|
||
tag = "CheckboxCards.Root" | ||
|
||
# The size of the checkbox cards: "1" | "2" | "3" | ||
size: Var[Literal["1", "2", "3"]] | ||
|
||
# Variant of button: "classic" | "surface" | "soft" | ||
variant: Var[Literal["classic", "surface"]] | ||
|
||
# Override theme color for button | ||
color_scheme: Var[LiteralAccentColor] | ||
|
||
# Uses a higher contrast color for the component. | ||
high_contrast: Var[bool] | ||
|
||
# The number of columns: | ||
columns: Var[Union[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]] | ||
|
||
# The gap between the checkbox cards: | ||
gap: Var[Union[str, Literal["1", "2", "3", "4", "5", "6", "7", "8", "9"]]] | ||
|
||
|
||
class CheckboxCardsItem(RadixThemesComponent): | ||
"""An item in the CheckboxCards component.""" | ||
|
||
tag = "CheckboxCards.Item" | ||
|
||
|
||
class CheckboxCards(SimpleNamespace): | ||
"""CheckboxCards components namespace.""" | ||
|
||
root = staticmethod(CheckboxCardsRoot.create) | ||
item = staticmethod(CheckboxCardsItem.create) | ||
|
||
|
||
checkbox_cards = CheckboxCards() |
Oops, something went wrong.