x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<div class="flex flex-col items-start gap"> <div class="group" role="group" aria-label="Small example"> <button name="button" type="button" class="btn btn--sm">Small</button> <button name="button" type="button" class="btn btn--sm">Button</button> <button name="button" type="button" class="btn btn--sm">Group</button> <button name="button" type="button" class="btn btn--icon-sm" aria-label="Add"> <span class="icon icon--plus" aria-hidden="true"></span> </button> </div> <div class="group" role="group" aria-label="Default example"> <button name="button" type="button" class="btn">Default</button> <button name="button" type="button" class="btn">Button</button> <button name="button" type="button" class="btn">Group</button> <button name="button" type="button" class="btn btn--icon" aria-label="Add"> <span class="icon icon--plus" aria-hidden="true"></span> </button> </div> <div class="group" role="group" aria-label="Large example"> <button name="button" type="button" class="btn btn--lg">Large</button> <button name="button" type="button" class="btn btn--lg">Button</button> <button name="button" type="button" class="btn btn--lg">Group</button> <button name="button" type="button" class="btn btn--icon-lg" aria-label="Add"> <span class="icon icon--plus" aria-hidden="true"></span> </button> </div></div>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="flex flex-col items-start gap"> <div class="group" role="group" aria-label="Small example"> <%= button_tag "Small", type: "button", class: "btn btn--sm" %> <%= button_tag "Button", type: "button", class: "btn btn--sm" %> <%= button_tag "Group", type: "button", class: "btn btn--sm" %> <%= button_tag type: "button", class: "btn btn--icon-sm", aria: { label: "Add" } do %> <span class="icon icon--plus" aria-hidden="true"></span> <% end %> </div> <div class="group" role="group" aria-label="Default example"> <%= button_tag "Default", type: "button", class: "btn" %> <%= button_tag "Button", type: "button", class: "btn" %> <%= button_tag "Group", type: "button", class: "btn" %> <%= button_tag type: "button", class: "btn btn--icon", aria: { label: "Add" } do %> <span class="icon icon--plus" aria-hidden="true"></span> <% end %> </div> <div class="group" role="group" aria-label="Large example"> <%= button_tag "Large", type: "button", class: "btn btn--lg" %> <%= button_tag "Button", type: "button", class: "btn btn--lg" %> <%= button_tag "Group", type: "button", class: "btn btn--lg" %> <%= button_tag type: "button", class: "btn btn--icon-lg", aria: { label: "Add" } do %> <span class="icon icon--plus" aria-hidden="true"></span> <% end %> </div></div>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.group { align-items: stretch; display: flex; flex-direction: row; inline-size: fit-content; > :not(:first-child) { border-end-start-radius: 0; border-inline-start: 0; border-start-start-radius: 0; } > :not(:last-child) { border-end-end-radius: 0; border-start-end-radius: 0; } > :focus-visible { position: relative; z-index: 1; }}.group-vertical { align-items: stretch; display: flex; flex-direction: column; inline-size: fit-content; > :not(:first-child) { border-block-start: 0; border-start-end-radius: 0; border-start-start-radius: 0; } > :not(:last-child) { border-end-end-radius: 0; border-end-start-radius: 0; } > :focus-visible { position: relative; z-index: 1; }}
Java Script is not required or multiple files are needed, check the notes.
No notes provided.