benjamincanac / ui3

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

feat(Separator): new component #46

Closed sandros94 closed 7 months ago

sandros94 commented 7 months ago

Implementation of the old UDivider component based on radix-vue's Separator one.

Currently done:

sandros94 commented 7 months ago

So far I did a couple of changes compared to the current stable release:

  1. the avatar size is picked from the avatar prop, this is mainly because of a type error that destroyed the avatar's size with v-bind="{ size: ui.avatarSize(), ...avatar }"
  2. made the default icon size w-6 h-6 instead of w-5 h-5 to match the default avatar size
sandros94 commented 7 months ago

Once I understand compoundVariants I'll add sizes too and mark this as ready for review.

sandros94 commented 7 months ago

I've also added a color prop. Since it came handy a number of times to me and shouldn't create any problems (didn't set a default tho)

benjamincanac commented 7 months ago

Thanks @Sandros94!!! 😊