Fontawesome Icon
@yamada-ui/fontawesome
provides convenient components for using Font Awesome.
Import
pnpm add @yamada-ui/fontawesome
@yamada-ui/fontawesome
is not included in @yamada-ui/react
, so it needs to be installed separately.
Import the necessary packages from Font Awesome.
pnpm add @fortawesome/free-solid-svg-icons @fortawesome/free-regular-svg-icons @fortawesome/free-brands-svg-icons
Package | |
---|---|
@fortawesome/free-solid-svg-icons | |
@fortawesome/free-regular-svg-icons | |
@fortawesome/free-brands-svg-icons |
import { Icon as FontAwesomeIcon } from "@yamada-ui/fontawesome"
Usage
import { Icon as FontAwesomeIcon } from "@yamada-ui/fontawesome"import { faPoo } from "@fortawesome/free-solid-svg-icons"
Editable example
<FontAwesomeIcon icon={faPoo} />
Edit this page on GitHub