divider.py 536 B

12345678910111213141516
  1. """A line to divide parts of the layout."""
  2. from pynecone.components.libs.chakra import ChakraComponent
  3. from pynecone.var import Var
  4. class Divider(ChakraComponent):
  5. """Dividers are used to visually separate content in a list or group."""
  6. tag = "Divider"
  7. # Pass the orientation prop and set it to either horizontal or vertical. If the vertical orientation is used, make sure that the parent element is assigned a height.
  8. orientation: Var[str]
  9. # Variant of the divider ("solid" | "dashed")
  10. variant: Var[str]