View Source PetalComponents.Badge (petal_components v1.0.8)
Link to this section Summary
Functions
Attributes
size(:string) - Defaults to"md".variant(:string) - Defaults to"light".color(:string) - Defaults to"primary".with_icon(:boolean) - adds some icon base classes. Defaults tofalse.class(:string) - CSS class for parent div. Defaults to"".label(:string) - label your badge. Defaults tonil. Global attributes are accepted.
Slots
inner_block
Link to this section Functions
attributes
Attributes
size(:string) - Defaults to"md".variant(:string) - Defaults to"light".color(:string) - Defaults to"primary".with_icon(:boolean) - adds some icon base classes. Defaults tofalse.class(:string) - CSS class for parent div. Defaults to"".label(:string) - label your badge. Defaults tonil. Global attributes are accepted.
slots
Slots
inner_block