feat(ButtonGroup): add orientation prop (#603)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Eduard Aymerich
2023-09-06 17:41:31 +02:00
committed by Benjamin Canac
parent e04c212d0d
commit b3bc6e2e9e
3 changed files with 35 additions and 14 deletions

View File

@@ -276,12 +276,14 @@ excludedProps:
To stack buttons as a group, use the `ButtonGroup` component.
- To size all the buttons equally, pass the `size` prop
- To change the orientation of the buttons, set the `orientation` prop to `vertical`
- To adjust the rounded or the shadow around buttons, customize with `ui.buttonGroup.rounded` or `ui.buttonGroup.shadow`
::component-card{slug="ButtonGroup"}
---
props:
size: 'sm'
orientation: 'horizontal'
ui:
size:
2xs: ''
@@ -290,6 +292,9 @@ ui:
md: ''
lg: ''
xl: ''
orientation:
horizontal: ''
vertical: ''
code: |
<UButton label="Action" color="white" />
<UButton icon="i-heroicons-chevron-down-20-solid" color="gray" />