File size: 481 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
```jsx
<Icon name="user" />
```
#### Changing the prefix to use fontawesome
First you need to add font awesome to your project.
In your HTML <head>:
```html
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
```
Then use the Icon `prefix` prop
```jsx
<Icon prefix="fa" name="user" />
```
#### Rendering a flag
```jsx
<Icon flag name="gb" />
```
#### Rendering a payment icon
```jsx
<Icon payment name="visa" />
```
|