icon

v1.0.2arrow_drop_down
v1.0.2
v1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
4,120
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
1022 B
Base template component for icons.
1 contributor
Install icon as a package?
Copied
npm i @bit/bit.base-ui.elements.icon
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
chevron_left
chevron_right
BaseIcon ()

Base template component for icons. Compose this class to make a specific icon component for a font-set, like bit-icon.

Example
const iconset = "eva-icons";
const EvaButton = (props) => <BaseIcon {...props} of={`${iconset}-${props.of}`} />;
Properties
NameTypeDescription
of
(required)
string

icon id (class name)

Help and resources