Skip to main content

Start NextJS

Let's discover Bear React Table in less than 5 minutes.

What you'll need

Check Example

Or try in NextJS with CodeSandbox.

Or with GitHub

Change ModuleResolution

npx create default is bundler

tsconfig.json
{
"moduleResolution": "node"
}

Add Style

src/app/layout.tsx
import './globals.css'
import 'bear-react-table/dist/index.css'; // <~ add this

Getting Started

src/app/page.tsx
'use client'

import Table from 'bear-react-table';

export default function Home() {
return (
<Table
isDark
title={{
name: {text: 'Title', col: 100},
desc: {text: 'Text', col: true},
}}
data={[
{id: 1, field: {name: 'Image Chiu', desc: 'this is a frontend coder'}},
{id: 2, field: {name: 'Gary Chien', desc: 'this is a backend coder'}},
]}
/>
);
}