Skip to content

Commit

Permalink
feat: btn-group-horizontal and btn-group-vertical classes are now…
Browse files Browse the repository at this point in the history
… responsive
  • Loading branch information
saadeghi authored and ImgBotApp committed Jun 5, 2023
1 parent 7a24b79 commit 5dcd893
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 59 deletions.
25 changes: 24 additions & 1 deletion src/docs/src/routes/components/button-group.svelte.md
Expand Up @@ -14,7 +14,8 @@ published: true
<ClassTable
data="{[
{ type:'component', class: 'btn-group', desc: 'Container for grouping multiple buttons' },
{ type:'component', class: 'btn-group-vertical', desc: 'Container for grouping multiple buttons (vertical)' },
{ type:'responsive', class: 'btn-group-horizontal', desc: 'Show buttons horizontally (default)' },
{ type:'responsive', class: 'btn-group-vertical', desc: 'Show buttons vertically' },
]}"
/>

Expand Down Expand Up @@ -62,6 +63,28 @@ data="{[
}</pre>
</Component>

<Component title="Responsive - Vertical for small screen, Horizontal on large screen">
<div class="btn-group btn-group-vertical lg:btn-group-horizontal">
<button class="btn btn-active">Button</button>
<button class="btn">Button</button>
<button class="btn">Button</button>
</div>
<pre slot="html" use:replace={{ to: $prefix }}>{
`<div class="$$btn-group btn-group-vertical lg:btn-group-horizontal">
<button class="$$btn $$btn-active">Button</button>
<button class="$$btn">Button</button>
<button class="$$btn">Button</button>
</div>`
}</pre>
<pre slot="react" use:replace={{ to: $prefix }}>{
`<div className="$$btn-group $$btn-group-vertical lg:$$btn-group-horizontal">
<button className="$$btn $$btn-active">Button</button>
<button className="$$btn">Button</button>
<button className="$$btn">Button</button>
</div>`
}</pre>
</Component>

<Component title="Button group with radio buttons">
<div class="btn-group">
<input type="radio" name="options" data-title="1" class="btn" />
Expand Down
58 changes: 0 additions & 58 deletions src/utilities/styled/button.css

This file was deleted.

0 comments on commit 5dcd893

Please sign in to comment.