x
1
2
3
4
5
6
7
8
9
10
11
12
13
<div class="group" role="group" aria-label="Basic example"><button name="button" type="submit" class="btn"> <img aria-hidden="true" src="/assets/circle-user-2cafd03c.svg" width="16" height="16" /> <span>Profile</span></button><button name="button" type="submit" class="btn"> <img aria-hidden="true" src="/assets/sliders-vertical-7f1ffd6a.svg" width="16" height="16" /> <span>Settings</span></button><button name="button" type="submit" class="btn"> <img aria-hidden="true" src="/assets/download-608a6c77.svg" width="16" height="16" /> <span>Download</span></button></div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div class="group" role="group" aria-label="Basic example"> <%= button_tag class: "btn" do %> <%= image_tag "circle-user.svg", size: 16, aria: { hidden: true } %> <span>Profile</span> <% end %> <%= button_tag class: "btn" do %> <%= image_tag "sliders-vertical.svg", size: 16, aria: { hidden: true } %> <span>Settings</span> <% end %> <%= button_tag class: "btn" do %> <%= image_tag "download.svg", size: 16, aria: { hidden: true } %> <span>Download</span> <% end %></div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.group { align-items: center; display: flex; :first-child { border-end-end-radius: 0; border-start-end-radius: 0; } :last-child { border-end-start-radius: 0; border-start-start-radius: 0; } :not(:first-child, :last-child) { border-radius: 0; margin-inline: -1px; } > :focus-visible { z-index: 1; }}
Java Script is not required or multiple files are needed, check the notes.
No notes provided.