Content-Length: 213037 | pFad | http://github.com/lucide-icons/lucide/issues/2716

BD svelte: allow class to be an array, for clsx support · Issue #2716 · lucide-icons/lucide · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 14 tasks
mustafa0x opened this issue Jan 4, 2025 · 0 comments · May be fixed by #2727
Open
2 of 14 tasks

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

mustafa0x opened this issue Jan 4, 2025 · 0 comments · May be fixed by #2727
Labels
💡 idea New ideas

Comments

@mustafa0x
Copy link

Package

  • lucide
  • lucide-angular
  • lucide-flutter
  • lucide-preact
  • lucide-react
  • lucide-react-native
  • lucide-solid
  • 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

  • I have searched the existing issues to make sure this bug has not already been reported.
@mustafa0x mustafa0x added the 💡 idea New ideas label Jan 4, 2025
@mustafa0x mustafa0x changed the title allow class to be an array, for clsx support svelte: allow class to be an array, for clsx support Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 idea New ideas
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/lucide-icons/lucide/issues/2716

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy