component-label

v1.1.3arrow_drop_down
v1.1.3
v1.1.2
v1.1.1
v1.1.0
v1.0.3
v1.0.2
v1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
3,044
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
6 KB
Given a component id, shows a label for it and its scope, with a link to its bit.dev entry.
1 contributor
Install component-label as a package?
Copied
npm i @bit/bit.evangelist.dev-tools.component-label
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
No preview available
modifieddraft
chevron_left
chevron_right
ComponentLabel ()

Given a component id, shows a label for it and its scope, with a link to its bit.dev entry.

Example
<ComponentLabel bitId="kutorg.nerv/atoms/lcl" versionOverride="1.5.3" />
Properties
NameTypeDefault valueDescription
bitId
string

Id of the component. Will show nothing if id is missing, and will show text only when id is not a valid bit-id

versionOverride
string

Explicitly set component version, and override any id that is part of the bit id.

fullScopeName
booleantrue

Show full scope name, including owner

Help and resources