SurfaceBulma.Tag (surface_bulma v0.6.0)
Tag is very useful as a way to attach information to a block or other component. Its size makes it also easy to display in numbers, making it appropriate for long lists of items.
Properties
- label :string - The label of the tag, when no content (default slot) is provided
- color :string, values: ~w(white black light dark primary link info success warning danger) - The color of the tag.
- size :string, values: ~w(small normal medium large) - The color of the tag.
- light :boolean - Light style
- rounded :boolean - Rounded style
Slots
default - The content of the generated
<span>
element. If no content is provided, the value of propertylabel
is used instead.addons - Addon tags that are attached together
Summary
Functions
Callback implementation for Surface.Component.render/1
.
Functions
Link to this function
render(assigns)
Callback implementation for Surface.Component.render/1
.