djust-theming | Demo Home Components | Gallery Storybook Editor Diff

Status Indicator

python component Feedback 6 params
EXAMPLES 2
Service running
python
status_indicator(status='running', label='Service running')
Service stopped
python
status_indicator(status='stopped', label='Service stopped')
USAGE
python
from djust_components.components.status_indicator import StatusIndicator

component = StatusIndicator(status='offline',
    label=None,
    pulse=False,
    size='md',
    custom_class='',
    kwargs)
html = component.render()
PARAMETERS 6
NameTypeDefault
status <class 'str'> 'offline'
label typing.Optional[str] None
pulse <class 'bool'> False
size <class 'str'> 'md'
custom_class <class 'str'> ''
kwargs