Menu

Advanced Tables: Colors, Sketches & Motion

In Part 1, we covered the basics. Now, let’s unlock the full potential of our <CustomTable /> component with new styles, colors, and animations.

1. Sketchy Style

The sketchy style is rougher than hand-drawn. It features dashed lines, a box shadow, and a transparent header. Perfect for prototyping or casual notes.

DraftNotesIdeas
V1Too cleanAdd noise
V2BetterMore color
V3PerfectShip it

2. Minimal Style

Sometimes less is more. The minimal style removes vertical borders and keeps things clean, using the color prop for the header underline.

NameRoleDepartment
AliceEngineerProduct
BobDesignerMarketing
CharlieManagerSales

3. Color Themes

We’ve added a color prop that works across all styles. Choose from red, blue, green, yellow, purple, and orange.

Red Bold Table

ErrorCodeSeverity
Not Found404Low
Server Error500High
Unauthorized401Medium

Green Colorful Table

ItemStockStatus
Apples50In Stock
Bananas20Low Stock
Oranges0Out of Stock

4. New Animations

Bring your tables to life with slide-left, slide-right, and zoom-in.

Zoom In

WinnerScore
Team A98
Team B95

Slide Right

Step 1Step 2Step 3
PlanExecuteReview

5. The Kitchen Sink

Combine everything for a truly unique table.

StyleColorAnimation
SketchyPurpleZoom In
MinimalBlueSlide Left
BoldRedFade

Usage

<CustomTable 
  headers={['A', 'B']}
  rows={[['1', '2']]}
  style="sketchy"
  color="purple"
  animation="zoom-in"
/>