icons-pack/react-simple-icons
์๊ฐ
๐ฆ Simple Icons๋ฅผ React ์ปดํฌ๋ํธ ๋ชจ์์ผ๋ก ์ ๊ณตํ๋ ํจํค์ง์ ๋๋ค.
์น ๋ฐ ์ฑ ๊ฐ๋ฐ์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- ๊ธฐ๋ก ์์ง ์ค
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
Originalreact-simple-icons
This package provides the Simple Icons 16.38.1 packaged as a set of React components.
Installation
Install the package in your project directory with:
npm add @icons-pack/react-simple-icons
Usage
You can use simpleicons.org to find a specific icon. When importing an icon, keep in mind that the names of the icons are upperCamelCase , for instance:
Material Designis exposed as{ SiMaterialdesign } from @icons-pack/react-simple-iconsazure devOpsis exposed as{ SiAzuredevops } from @icons-pack/react-simple-icons
Basic example
import { SiReact } from '@icons-pack/react-simple-icons';
function BasicExample() {
return <SiReact color='#61DAFB' size={24} />;
}
Change title
@icons-pack/react-simple-icons provides a default title referring to the component name
The
<title>element provides an accessible, short-text description of any SVG container element or graphics element.
import { SiReact } from '@icons-pack/react-simple-icons';
// title default "React"
function ChangeTitle() {
return <SiReact title='My title' color='#61DAFB' size={24} />;
}
Use default color
Set color as default to use the default color for each icon
import { SiReact } from '@icons-pack/react-simple-icons';
function DefaultColorExample() {
return <SiReact color='default' size={24} />;
}
Use default color as hex
Append Hex to the icon name to use the default color as hex string
import { SiReact, SiReactHex } from '@icons-pack/react-simple-icons';
function DefaultColorExample() {
return <SiReact color={SiReactHex} size={24} />;
}
Custom styles
import { SiReact } from '@icons-pack/react-simple-icons';
function CustomStyles() {
return <SiReact className='myStyle' />;
}
.myStyle {
width: 35px;
height: 35px;
}
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ