1.0.5 • Published 2 years ago
react-solar-set v1.0.5
React Solar Set

News icons 🎉
import { PowerLighting } from "react-solar-set";
function App() {
return <PowerLighting color="#1C274C" size={24} iconStyle="Linear" />;
}import { SolarPower } from "react-solar-set";
function App() {
return <SolarPower color="#1C274C" size={24} iconStyle="Linear" />;
}Install
npm install react-solar-setUsage
import * as ReactSolarIcon from "react-solar-set";
function App() {
return <ReactSolarIcon.Document color="#1C274C" size={24} iconStyle="Bold" />;
}or
import { Document } from "react-solar-set/school";
function App() {
return <Document color="#1C274C" size={24} iconStyle="Bold" />;
}Prop Types
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
| color | String | No | #1C274D | Override the icon's fill color |
| size | Number | No | 16px | Change icon size |
| autoSize | Boolean | No | false | Enable automatic resizing |
| svgProps | SVGSVGElement | No | undefined | SVG default properties |
| iconStyle | Broken, LineDuotone, Linear, Outline, Bold, BoldDuotone | No | Linear | Choose one of the styles |