Hand drawn icons for Preact
Preact components at 467 bytes an icon, with the API unchanged from the React target.
- d1 M14.38 18.27C13.63 18.36 13.16 19.09 12.69 18.91Q8.84 18.99 4.85 18.61Q5.96 15.16 5.01 11.32C5.27 10.65 5.53 10.54 5.62 10.06Q9.67 7.83 12.33 3.61C13.37 2.33 15.91 1.25 17.74 2.33C19.4 2.43 21.27 3.96 21.84 6.19C21.94 7.93 21.62 11.44 19.94 12.27Q16.33 14.5 14.55 18.41
- d2 M15.98 7.97Q8.77 14.77 1.81 22.11
- d3 M17.46 14.92Q13.24 15.56 9.13 14.93
- One icon
- 467 B
- Peers
- preact@^10
- Runtime dependencies
- none
- Shape
- one per icon
In your code
React rewrites camel case attributes into SVG's own spelling and Preact does not, so the factory writes stroke-width on the element directly. The prop you pass is still strokeWidth, which keeps the call site identical to every other target.
import { House, Star } from "@sketchyicons/preact";
<House size={20} />
<Star size={15} color="#2B2521" strokeWidth={1.75} fill="currentColor" />- size
- number defaults to 24
- color
- string defaults to currentColor
- strokeWidth
- number defaults to 2
- absoluteStrokeWidth
- boolean defaults to false
- fill
- string defaults to none
Coming from lucide-preact
The geometry here is derived from Lucide, so the names match and the props match. The 247 names Lucide has renamed are exported next to the current ones, which means Home and HelpCircle keep resolving after the swap.
-import { House } from "lucide-preact";
+import { House } from "@sketchyicons/preact";Nothing else at the call site moves. Sizes, colours and stroke widths keep the values you already wrote.
1500+ icons, drawn
Every glyph in the set has its own page with the code for Preact, the sizes it holds at, and the file. 1756 of them, drawn by the same generator that built the package.
93 shown, type to search all of them
- feather
- compass
- flame
- anvil
- leaf
- bird
- heart
- star
- trophy
- crown
- sparkles
- flask-conical
- book-open
- bookmark
- quote
- pen-line
- pencil-ruler
- ruler
- camera
- music
- coffee
- umbrella
- ticket
- fish
- globe
- map-pin
- rocket
- anchor
- moon
- sun
- cloud
- zap
- lightbulb
- magnet
- paperclip
- scissors
- package
- folder
- git-branch
- terminal
- key
- lock
- send
- message-circle
- bell
- calendar
- user
- telescope
- hammer
- shovel
- axe
- wrench
- drill
- tent
- mountain
- waves-horizontal
- snowflake
- sprout
- trees
- guitar
- drum
- piano
- mic-vocal
- radio
- headphones
- croissant
- ice-cream-cone
- pizza
- cake-slice
- wine
- beer
- shirt
- glasses
- watch
- footprints
- gem
- cat
- dog
- rabbit
- squirrel
- snail
- shell
- origami
- swords
- dices
- puzzle
- palette
- brush
- microscope
- atom
- dna
- orbit
Read the installation guide for the peer dependencies and the first icon on screen. Every glyph holds at 15 px, which is the size a real control uses.
The other targets
Why two of them package their icons differently is worked through in One component per icon, except when that is the wrong shape.