@telegraph/icon
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

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, checkmark } from "@telegraph/icon"

...

<Icon icon={checkmark} alt="item is selected"/>
Props
Name Type Default Options
icon string 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"

Readme

Keywords

none

Package Sidebar

Install

npm i @telegraph/icon

Weekly Downloads

50

Version

0.0.7

License

MIT

Unpacked Size

3.31 MB

Total Files

19

Last publish

Collaborators

  • cjbell
  • kylemcd