
* Update component docstrings * Remove transitions libs * Add span component * Add lock files
35 lines
696 B
Python
35 lines
696 B
Python
"""Alert components."""
|
|
|
|
from pynecone.components.libs.chakra import ChakraComponent
|
|
from pynecone.var import Var
|
|
|
|
|
|
class Alert(ChakraComponent):
|
|
"""An alert feedback box."""
|
|
|
|
tag = "Alert"
|
|
|
|
# The status of the alert ("success" | "info" | "warning" | "error")
|
|
status: Var[str]
|
|
|
|
# "subtle" | "left-accent" | "top-accent" | "solid"
|
|
variant: Var[str]
|
|
|
|
|
|
class AlertIcon(ChakraComponent):
|
|
"""An icon displayed in the alert."""
|
|
|
|
tag = "AlertIcon"
|
|
|
|
|
|
class AlertTitle(ChakraComponent):
|
|
"""The title of the alert."""
|
|
|
|
tag = "AlertTitle"
|
|
|
|
|
|
class AlertDescription(ChakraComponent):
|
|
"""AlertDescription composes the Box component."""
|
|
|
|
tag = "AlertDescription"
|