Skip to content

Commit

Permalink
feat(BaseButtonIcon): add xl size
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Jun 6, 2024
1 parent 9a02992 commit d7d9b30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .playground/pages/tests/base/button-icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ definePageMeta({
<BaseButtonIcon size="lg" rounded="md">
<Icon name="ph:game-controller-duotone" class="h-6 w-6" />
</BaseButtonIcon>
<BaseButtonIcon size="xl" rounded="md">
<Icon name="ph:game-controller-duotone" class="h-7 w-7" />
</BaseButtonIcon>
</div>
</NuiPreview>

Expand Down
9 changes: 5 additions & 4 deletions components/base/BaseButtonIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const props = withDefaults(
*
* @default 'md'
*/
size?: 'sm' | 'md' | 'lg'
size?: 'sm' | 'md' | 'lg' | 'xl'
}>(),
{
to: undefined,
Expand All @@ -100,9 +100,10 @@ const radiuses = {
}
const sizes = {
sm: 'nui-button-small',
md: 'nui-button-medium',
lg: 'nui-button-large',
sm: 'nui-button-sm',
md: 'nui-button-md',
lg: 'nui-button-lg',
xl: 'nui-button-xl',
}
const colors = {
Expand Down

0 comments on commit d7d9b30

Please sign in to comment.