You should have the chayns-components
package installed. If that is not the
case already, run
yarn add chayns-components
or
npm i chayns-components
After the chayns-components
package is installed, you can import the component
and use it with React:
import React from 'react'
import { VerificationIcon } from 'chayns-components';
// ...
<VerificationIcon {...} />
The VerificationIcon
-component takes the following props:
Name | Type | Default | Required |
---|---|---|---|
name | string |
✓ | |
design | number |
VerificationIcon.BLUE_DESIGN |
|
verified | boolean |
false |
name: string;
The username
design?: number
The design of the icon. Use either VerificationIcon.DEFAULT_DESIGN
,
VerificationIcon.GRAY_DESIGN
or VerificationIcon.BLUE_DESIGN
.
verified?: boolean
Whether the user is verified