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
feat: include code snippet in preview comment #1973
feat: include code snippet in preview comment #1973
Conversation
ExampleAdded or changed iconsIcons as codeconst AppleIcon = createLucideIcon('Apple', [
["path",{"d":"M12 20.94c1.5 0 2.75 1.06 4 1.06 3 0 6-8 6-12.22A4.91 4.91 0 0 0 17 5c-2.22 0-4 1.44-5 2-1-.56-2.78-2-5-2a4.9 4.9 0 0 0-5 4.78C2 14 5 22 8 22c1.25 0 2.5-1.06 4-1.06Z"}],
["path",{"d":"M10 2c1 .5 2 2 2 5"}]
])
const BookIcon = createLucideIcon('Book', [
["path",{"d":"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"}]
]) |
8b5f444
to
ef9e074
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, can we also wrap this in a details+summary.
Because if we add, change or optimize a whole list for icons we will get a very large list of code examples.
Hmm this code example only will only work for packages that uses the createLucideIcon function. |
Sure, any plans to add |
@jguddas Unfortunately It's not possible for |
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
What is the purpose of this pull request?
Description
It's hard to use the icons before they are release, this change makes early testing and adoption easier.
Before Submitting