Get Started
UI Examples/Tutorials
- What is zero-true?
- State in zero-true
- User State in zero-true
- Buttons in Zero-True
- Sliders in zero-true
- Range Sliders in zero-true
- Text Inputs in zero-true
- Text Areas in zero-true
- Displaying a Pandas DataFrame in zero-true
- Displaying a Matplotlib Plot in zero-true
- Displaying a Plotly Plot in zero-true
- CLI
- App Bar
- Toolbar
- Cell Types
- Cells
- Layout
- Publishing
API reference
Button
Below are the various attributes you can assign to the component. Utilizing them can allow for modifications to the pre-created object.
id (string): Unique id for a component
value (boolean): Whether the button has been clicked
text (string): Label displayed on the button
color (string): Color of the button
disabled (boolean): If true, the button is disabled
outlined (boolean): If true, the button will have an outlined style
Example Usage
import zero_true as zt
sample_button = zt.Button(
id = 'sample_button', # Unique id for a component
value = False, # Whether the button has been clicked
text = 'Click Me', # Label displayed on the button
color = 'primary', # Color of the button
disabled = False, # If true, the button is disabled
outlined = False, # If true, the button will have an outlined style
)
Assistant
Responses are generated using AI and may contain mistakes.