SurfaceBulma.Tag (surface_bulma v0.5.1)

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

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

Slots

  • default - The content of the generated <span> element. If no content is provided, the value of property label is used instead.

  • addons - Addon tags that are attached together

Link to this section Summary

Link to this section Functions

Link to this function

render(assigns)

Callback implementation for Surface.Component.render/1.