0.5.4 • Published 6 years ago

@roo-ui/icon v0.5.4

Weekly downloads
-
License
-
Repository
-
Last release
6 years ago

Icon

Installation

$ yarn add @roo-ui/icons

Example

import { Icon, jetstarPaths, qantasPaths } from '@roo-ui/icons';

export default <Icon title="Aeroplane" path={jetstarPaths['aeroplane']} size="5rem" />;

Properties

NameDescriptionTypeDefaultRequired?
pathpathstring✔︎
fillcolorstring
titleA11Y titlestring
sizesizestring
widthwidthstring
heightheightstring

Adding icons

Export an icon from an artboard that is 36x36px and add the path to the brand's paths file.

When your icon contains multiple paths add it as one path, with a space where a new path starts. Eg: <path d="123" /> <path d="abc" /> would become <path d="123 abc" />.

Optimising icons

Running your svg through an optimiser will remove unneeded information and inline the path. SVGO does a good job of this and there is an online GUI here.

0.5.4

6 years ago

0.5.3

6 years ago

0.5.0

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.3

6 years ago

0.3.1

6 years ago

0.2.0

6 years ago