0.0.4-alpha.3 • Published 2 years ago

@graffft-waggle/icon v0.0.4-alpha.3

Weekly downloads
2
License
MIT
Repository
github
Last release
2 years ago

filename: /packages/atoms/Icon/Icon.tsx

Icon API

The API documentation of the Icon Graffft Waggle component.

Import

import { Icon } from '@graffft-waggle/icon';

Icon

Required Props

NameTypeDescription
title"github"\|"linkedin"\|"codepen"\|"stackoverflow"\|"gmail"\|"gatsby"\|"php"\|"wordpress"\|"angular"\|"react"\|"css"\|"html"\|"docker"\|"k8s"\|"ruby"\|"jest"\|"python"\|"javascript"\|"redux"\|"typescript"\|"git"The name of the icon. This text is also used in the svg <title> tag.

Optional Props

NameTypeDefaultDescription
colorstring'#000'The color of the svg icon.
sizestring24pxSize (width and height) of the icon.

Demos

  • TODO