Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.35 KB

verification-icon.md

File metadata and controls

71 lines (47 loc) · 1.35 KB

VerificationIcon

Source

Usage

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 {...} />

Props

The VerificationIcon-component takes the following props:

Name Type Default Required
name string
design number VerificationIcon.BLUE_DESIGN
verified boolean false

name

name: string;

The username


design

design?: number

The design of the icon. Use either VerificationIcon.DEFAULT_DESIGN, VerificationIcon.GRAY_DESIGN or VerificationIcon.BLUE_DESIGN.


verified

verified?: boolean

Whether the user is verified