Tabler React 2 Docs
Getting started
Getting started
Welcome to Tabler React 2! This guide will help you get started with the library and its components.
Installation
To install Tabler React 2, you can use npm or yarn.
npm install tabler-react-2 @tabler/icons-react
yarn add tabler-react-2 @tabler/icons-react
Usage
To use Tabler React 2, you need to wrap your application with the TablerProvider
component. This component provides the necessary CSS and JavaScript files for Tabler React 2.
import { TablerProvider } from "tabler-react-2";
function App() { return ( <TablerProvider> <YourApp /> </TablerProvider> );}
Edit this page on GitHubNote: If you are using the
react-router-dom
library, you will need to set thefallbackAnchor
prop tofalse
in theTablerProvider
component. This way, links will use theLink
component fromreact-router-dom
instead of the default anchor tag.
<TablerProvider fallbackAnchor={false}>...</TablerProvider>