Skip to content

Files

Latest commit

 

History

History

icon

Telegraph by Knock

npm version

@telegraph/icon

Beautiful icons from the telegraph design system

Installation Instructions

npm install @telegraph/icon

Add stylesheet

@import "@telegraph/icon"

Usage

<Icon/>

import { Icon, Lucide } from "@telegraph/icon"

...

<Icon icon={Lucide.Bell} alt="notifications"/>
Props
Name Type Default Options
icon ReactComponent undefined See package exports
alt string undefined
size string "2" "1" "2" "3" "4" "5" "6" "7" "8" "9"
color string "default" "default" "gray" "red" "beige" "blue" "green" "yellow" "purple" "accent" "disabled" "white"
variant string "primary" "primary" "secondary"