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

Ribbon

python component Layout 5 params
EXAMPLES 2
python
ribbon(label='New', variant='success')
python
ribbon(label='Beta', variant='warning')
USAGE
python
from djust_components.components.ribbon import Ribbon

component = Ribbon(text='',
    variant='primary',
    position='top-right',
    custom_class='',
    kwargs)
html = component.render()
PARAMETERS 5
NameTypeDefault
text <class 'str'> ''
variant <class 'str'> 'primary'
position <class 'str'> 'top-right'
custom_class <class 'str'> ''
kwargs