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-reactyarn add tabler-react-2 @tabler/icons-reactUsage
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-domlibrary, you will need to set thefallbackAnchorprop tofalsein theTablerProvidercomponent. This way, links will use theLinkcomponent fromreact-router-dominstead of the default anchor tag.<TablerProvider fallbackAnchor={false}>...</TablerProvider>