adding data-slot="icon"
to icon components
#2881
Unanswered
stefanprobst
asked this question in
Q&A
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
heroicons add a
data-slot="icon"
attribute to all icon components, which is very useful when creating a component library.is there a way to achieve the same thing with lucide, or have you considered adding this as well?
basically what i would want is https://github.com/lucide-icons/lucide/blob/main/packages/lucide-react/src/createLucideIcon.ts adding
data-slot: "icon"
.Beta Was this translation helpful? Give feedback.
All reactions