lucide icon indicating copy to clipboard operation
lucide copied to clipboard

svelte: allow class to be an array, for clsx support

Open mustafa0x opened this issue 1 month ago • 0 comments

Package

  • [ ] lucide
  • [ ] lucide-angular
  • [ ] lucide-flutter
  • [ ] lucide-preact
  • [ ] lucide-react
  • [ ] lucide-react-native
  • [ ] lucide-solid
  • [X] lucide-svelte
  • [ ] lucide-vue
  • [ ] lucide-vue-next
  • [ ] Figma plugin
  • [ ] all JS packages
  • [ ] site

Description

See https://svelte.dev/blog/advent-of-svelte#Day-24:-clsx-built-in

So that I'm able to do something like:

<ChevronUp
    size={20}
    class={[
        'transition-transform duration-200',
        open && 'rotate-180',
    ]}
/>

Use cases

more expressive code

Checklist

  • [X] I have searched the existing issues to make sure this bug has not already been reported.

mustafa0x avatar Jan 04 '25 19:01 mustafa0x