|
Download tabler-react/src/components/Icon/Icon.examples.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Icon/Icon.examples.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Icon/Icon.examples.md
-
curl -L -o Icon.examples.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Icon/Icon.examples.md
481 Bytes
<Icon name="user" />
Changing the prefix to use fontawesome
First you need to add font awesome to your project.
In your 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
<Icon prefix="fa" name="user" />
Rendering a flag
<Icon flag name="gb" />
Rendering a payment icon
<Icon payment name="visa" />