Flowbite::Button
Renders a HTML button element. See https://flowbite.com/docs/components/buttons/
All other parameters are optional and are passed directly to the button tag as HTML attributes.
Basic usage
<%= render Flowbite::Button.new { "Click me" } %>
Examples
Styles
Use these default button styles with multiple colors to indicate an action or link within your website.
Sizes
Use these examples if you want to use smaller or larger buttons.
Pills
The button pills can be used as an alternative style by using fully rounded edges. Styled with Flowbite 4.0 semantic design tokens.
Outline
Use the outline button styles to create bordered buttons with transparent backgrounds. Styled with Flowbite 4.0 semantic design tokens.
API reference
Flowbite
In namespace
Constructor
def initialize(class: nil, size: :default, style: :default, **button_attributes)
See also
Ruby API documentation forclass Flowbite::Button