Usage with React Router
Generate new application
Follow React Router getting started guide guide to create new React Router application:
Installation
Choose packages that you will use in your application:
Package | Description | |
---|---|---|
@thinker-core/mantine-hooks | Hooks for state and UI management | |
@thinker-core/mantine-core | Core components library: inputs, buttons, overlays, etc. | |
@thinker-core/mantine-form | Form management library | |
@thinker-core/mantine-dates | Date inputs, calendars | |
@thinker-core/mantine-charts | Recharts based charts library | |
@thinker-core/mantine-notifications | Notifications system | |
@thinker-core/mantine-code-highlight | Code highlight with your theme colors and styles | |
@thinker-core/mantine-tiptap | Rich text editor based on Tiptap | |
@thinker-core/mantine-dropzone | Capture files with drag and drop | |
@thinker-core/mantine-carousel | Embla based carousel component | |
@thinker-core/mantine-spotlight | Overlay command center | |
@thinker-core/mantine-modals | Centralized modals manager | |
@thinker-core/mantine-nprogress | Navigation progress | |
@thinker-core/mantine-icons | Icons for Thinker |
Add @thinker-core registry to your .npmrc file:
Install dependencies:
PostCSS setup
Install PostCSS plugins and postcss-preset-mantine:
Create postcss.config.cjs
file at the root of your application with the following content:
Setup
Add styles imports, MantineProvider and ColorSchemeScript to app/root.tsx
:
All set! Start development server: