Flowbite::Badge::Pill
Renders a pill-shaped badge with fully rounded corners.
Basic usage
<%= render(Flowbite::Badge::Pill.new) { "Default" } %>
API reference
Flowbite::Badge
Constructor
def initialize(bordered: false, class: nil, dot: false, href: nil, size: :default, style: :brand, **options)
Parameters
bordered |
Boolean | Whether to add a border to the badge. |
|---|---|---|
class |
String, Array<String> | Additional CSS classes. |
dot |
Boolean | Whether to show a dot indicator. |
href |
String | If provided, renders the badge as a link. |
size |
Symbol | The size of the badge (:default or :lg). |
style |
Symbol | The color style (:alternative, :brand, :danger, :gray, :success, :warning). |
See also
Ruby API documentation forclass Flowbite::Badge::Pill