tabler-icons/packages/icons-preact
codecalm a96c47ce4b Release 2.4.0 2023-02-14 01:10:19 +01:00
..
src fix: `stroke` prop no longer works after 2.0 update (#470) 2023-01-25 23:26:11 +01:00
.babelrc Add unit tests for icons (#503) 2023-02-09 21:45:10 +01:00
README.md fix: `stroke` prop no longer works after 2.0 update (#470) 2023-01-25 23:26:11 +01:00
build.mjs fix #492: replace `stroke-width` to `strokeWidth` in React and Preact packages 2023-02-09 22:30:17 +01:00
package.json Release 2.4.0 2023-02-14 01:10:19 +01:00
rollup.config.mjs Version 2.0! (#439) 2023-01-22 00:02:47 +01:00
test.spec.js Add unit tests for icons (#503) 2023-02-09 21:45:10 +01:00

README.md

Tabler Icons for Preact

Tabler Icons

Implementation of the Tabler Icons library for Preact applications.

Browse all icons at tabler-icons.io →

Latest Release License

Sponsors

If you want to support my project and help me grow it, you can become a sponsor on GitHub or just donate on PayPal :)

Installation

yarn add @tabler/icons-preact

or

npm install @tabler/icons-preact

or

pnpm install @tabler/icons-preact

or just download from Github.

How to use

It's build with ESmodules so it's completely tree-shakable. Each icon can be imported as a component.

import { IconArrowDown } from '@tabler/icons-preact';

const App = () => {
  return <IconArrowDown />;
};

export default App;

You can pass additional props to adjust the icon.

<IconArrowDown color="red" size={48} />

Props

name type default
size Number 24
color String currentColor
stroke Number 2

Contributing

For more info on how to contribute please see the contribution guidelines.

Caught a mistake or want to contribute to the documentation? Edit this page on Github

License

Tabler Icons is licensed under the MIT License.

Sponsor Tabler

Sponsor Tabler