Joins allow you to combine multiple components into a singular, joined, element. This is useful for components like buttons, inputs with symbols, and many more.
Buttons can be joined with other components to create a single, cohesive element.
You must manually add the .join-item
CSS class to the items you
want to be joined since this could be complicated to do automatically in
many use-cases and would almost certainly cause rendering issues.
= daisy_join do |join|
- join.with_item do
= daisy_button(title: "Start", css: "join-item")
- join.with_item do
= daisy_button(title: "Center", css: "join-item")
- join.with_item do
= daisy_button(title: "End", css: "join-item")
= daisy_join do |join|
- join.with_item do
= daisy_button(icon: "bars-3-bottom-left", css: "join-item")
- join.with_item do
= daisy_button(icon: "bars-3", css: "join-item")
- join.with_item do
= daisy_button(icon: "bars-3-bottom-right", css: "join-item")
You can also join elements vertically.
= daisy_join(css: "join-vertical min-w-32") do |join|
- join.with_item do
= daisy_button(title: "Top", css: "w-full join-item")
- join.with_item do
= daisy_button(title: "Middle", css: "w-full join-item btn-primary")
- join.with_item do
= daisy_button(title: "Bottom", css: "w-full join-item")
Create virtual credit / debit cards to keep your real info safe.
Get $5 when you sign up — free to start!
Everything you need to grow your business with confidence!
CRM, Lead Generation, Project Management, Contracts, Online Payments, and more!
The ads above are affiliate links to products I regularly use and highly
recommend.
I may receive a commission if you decide to purchase.