reflex/pynecone/components/datadisplay/list.py
Nikhil Rao 7ec4b3f8fe
Improve component docs (#35)
* Update component docstrings
* Remove transitions libs
* Add span component
* Add lock files
2022-12-07 15:04:49 -08:00

39 lines
768 B
Python

"""List components."""
from pynecone.components.component import Component
from pynecone.components.libs.chakra import ChakraComponent
from pynecone.var import Var
class List(ChakraComponent):
"""Display a list of items."""
tag = "List"
# The space between each list item
spacing: Var[str]
# Shorthand prop for listStylePosition
style_position: Var[str]
# Shorthand prop for listStyleType
style_type: Var[str]
class ListItem(ChakraComponent):
"""A single list item."""
tag = "ListItem"
class OrderedList(ChakraComponent):
"""An ordered list component with numbers."""
tag = "OrderedList"
class UnorderedList(ChakraComponent):
"""An unordered list component with bullets."""
tag = "UnorderedList"