Added some more props to components (#953)

This commit is contained in:
Alek Petuskey 2023-05-11 18:55:36 -07:00 committed by GitHub
parent b699bbdff7
commit 1aa8501473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -45,6 +45,9 @@ class Select(ChakraComponent):
# "outline" | "filled" | "flushed" | "unstyled"
variant: Var[str]
# The size of the select.
size: Var[str]
@classmethod
def get_controlled_triggers(cls) -> Dict[str, Var]:
"""Get the event triggers that pass the component's value to the handler.

View File

@ -46,6 +46,21 @@ class Slider(ChakraComponent):
# The minimum distance between slider thumbs. Useful for preventing the thumbs from being too close together.
min_steps_between_thumbs: Var[int]
# Oreintation of the slider vertical | horizontal.
orientation: Var[str]
# Minimum height of the slider.
min_h: Var[str]
# Minimum width of the slider.
min_w: Var[str]
# Maximum height of the slider.
max_h: Var[str]
# Maximum width of the slider.
max_w: Var[str]
@classmethod
def get_controlled_triggers(cls) -> Dict[str, Var]:
"""Get the event triggers that pass the component's value to the handler.
@ -99,6 +114,9 @@ class SliderThumb(ChakraComponent):
tag = "SliderThumb"
# The size of the thumb.
box_size: Var[str]
class SliderMark(ChakraComponent):
"""The label or mark that shows names for specific slider values."""