@vnkr-labs/icons-preact
v1.0.0
Published
A set of free MIT-licensed high-quality SVG icons for you to use in your web projects.
Readme
AXQ Icons for Preact
Installation
npm install @axqdesign/icons-preactyarn add @axqdesign/icons-preactpnpm add @axqdesign/icons-preactYou can also download the latest release from GitHub.
Usage
The package is built with ES modules, so unused icons are tree-shaken from your bundle. Each icon is exported as a component.
import { IconArrowDown } from '@axqdesign/icons-preact';
const App = () => {
return <IconArrowDown />;
};
export default App;Pass props to adjust the icon:
<IconArrowDown color="red" size={48} stroke={1.5} />Props
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| size | number | string | 24 | Width and height of the icon |
| color | string | currentColor | Stroke color for outline icons, fill color for filled icons |
| stroke | number | string | 2 | Stroke width, outline icons only |
| title | string | – | Adds a <title> element for accessibility |
| class | string | – | Extra classes added to AXQ Design-icon AXQ Design-icon-{{name}}, className is accepted as well |
Any other attribute is forwarded to the rendered <svg> element. The package ships with TypeScript declarations.
License
AXQ Icons is proprietary software. See LICENSE for details.
