0.27.6 • Published 3 years ago
@gladio/icons v0.27.6
Icons
We are using svgs for icons.
Installation
npm install --save @gladio/icons
Usage
import { PhoneIcon } from "@gladio/icons"
function MyComponent() {
return (
<div>
<PhoneIcon title="Call to John doe" />
</div>
)
}
Contribution
- Generating SVGs
Head over to https://icomoon.io/app and choose icon(s). After selecting icon(s), click on
Generate SVG & More
from bottom navigation. From this view, download the svgs and paste the content of <downloaded_folder>/SVG into the./svgs
folder. Append the styles from <downloaded_folder>/styles.css to./icon.css
.
2 Copy the svg to the src/svgs
folder
3 Add appropriate styles to the src/icon.css
with css class be tp-icon-[svg-file-name]
4 Run npm run prebuild
to build the component and update the imports files
0.27.6
3 years ago
0.27.5
3 years ago
0.27.4
3 years ago
0.27.1
3 years ago
0.27.0
3 years ago
0.26.0
3 years ago
0.25.0
3 years ago
0.24.0
3 years ago
0.23.1
3 years ago
0.23.0
3 years ago
0.22.0
4 years ago
0.21.0
4 years ago
0.20.0
4 years ago
0.19.1
4 years ago
0.19.0
4 years ago
0.18.0
4 years ago
0.17.0
4 years ago
0.16.0
4 years ago
0.15.0
4 years ago
0.14.1
4 years ago