Status Dot
EXAMPLES 3
status_dot(status='online', label='Online')
status_dot(status='offline', label='Offline')
status_dot(status='busy', label='Busy')
USAGE
from djust_components.components.status_dot import StatusDot
component = StatusDot(status,
variant=None,
size='md',
animate=<object object at 0x7fad0bf423f0>,
tooltip=None,
custom_class='',
custom_status_map=None,
custom_animation_map=None,
kwargs)
html = component.render()
PARAMETERS 9
| Name | Type | Default |
|---|---|---|
status |
<class 'str'> |
— |
variant |
typing.Optional[str] |
None |
size |
<class 'str'> |
'md' |
animate |
typing.Optional[str] |
<object object at 0x7fad0bf423f0> |
tooltip |
typing.Optional[str] |
None |
custom_class |
<class 'str'> |
'' |
custom_status_map |
typing.Optional[typing.Dict[str, str]] |
None |
custom_animation_map |
typing.Optional[typing.Dict[str, typing.Optional[str]]] |
None |
kwargs |
— |
— |