Lucide for Hono
Lucide provides an icon component library for Hono JSX. Each icon is a Hono JSX component that renders an inline SVG element, so icons are part of the HTML your Hono app sends, on any runtime Hono supports.
List of features:
- Easy to Use: Import icons as Hono JSX components and use them directly in
c.html()or any Hono JSX component. - Customizable: Adjust size, color, and other properties via props.
- Tree-shakable: Only the icons you use are included in your final bundle.
- TypeScript Support: Fully typed components for better developer experience.
Overview
Basics
ColorAdjust the color of your iconsSizingAdjust the size of your iconsStroke widthAdjust the stroke width of your icons
Advanced
TypescriptAll exported types and how to use themAccessibilityMaking your icons accessibleGlobal stylingApply global styles to all iconsWith Lucide LabUsing lucide-lab with @lucide/hono