benjamincanac / ui3

A UI Library for Modern Web Apps, powered by Vue & Tailwind CSS.
https://ui.nuxt.com
MIT License
53 stars 7 forks source link

feat(DropdownMenu): handle `size` prop #125

Closed Silver343 closed 2 months ago

Silver343 commented 2 months ago

๐Ÿ”— Linked issue

starts to resolve #44 with dynamic sizing for the child avatar, icons and kbd components.

โ“ Type of change

๐Ÿ“š Description

Similar to pr #124 I have added a new size prop to the component, which updates the variant, with a default of md. I have introduced new variant slots for the item avatar size and item kbd size so they can adjust with parent component.

๐Ÿ“ Checklist

benjamincanac commented 2 months ago

Thanks @Silver343! ๐Ÿ˜Š I've updated the config a bit to better match the buttons.

Do you plan on doing the same thing for the other components?

Silver343 commented 2 months ago

@benjamincanac yes I do