W
Win2k UI
☰ Components

WinTable

A Win2k-styled table with a navy header row, white body rows, and row separators.

When to use

Use WinTable for structured data display — grades, scores, lists of records.

When not to use

Do not use WinTable for layout purposes. Use WinGrid or CSS flexbox instead.

Installation

Install the package:

npm install win2k-ui

Then import the component:

import { WinTable } from 'win2k-ui'

Make sure you have Tailwind CSS v4 set up, then add this to your root CSS file:

@import "tailwindcss";
@import "win2k-ui/styles.css";

No other dependencies required. The components ship with zero third-party UI dependencies — just Tailwind CSS 4 and React.

Preview

Interactive examples showing various states and configurations. Click “Show Code” to view the source for each variation.

Simple 3-column table

ProcessPIDMemory
winlogon.exe3242,456 KB
services.exe4523,128 KB
explorer.exe16888,944 KB
svchost.exe8924,216 KB

Table with long content (overflow scroll)

File NamePathSize
systemconfig.iniC:\Windows\System32\config\systemconfig.ini128 KB
userprofile.datC:\Documents and Settings\Administrator\userprofile.dat2.4 MB
drivers.sysC:\Windows\System32\drivers\drivers.sys456 KB
winlogon.exeC:\Windows\System32\winlogon.exe612 KB

Props

All available props for the WinTable component.

PropTypeDefaultDescription
headersstring[]Column header labels.
rowsReactNode[][]2D array of cell content.
classNamestring''Additional CSS classes.

Usage

Example showing the component in a typical context:

import { WinTable } from 'win2k-ui'

export function Example() {
  return (
    <WinTable
      headers={["Name", "Score", "Status"]}
      rows={[
        ["Alice", "95", "Passed"],
        ["Bob", "72", "Passed"],
        ["Charlie", "45", "Failed"],
      ]}
    />
  )
  }

Notes

WinTable uses inline styles for `border-bottom: 1px solid #d4d0c8` on body rows to achieve the classic grid line look. The component is wrapped in an `overflow-x-auto` div for responsive horizontal scrolling on small viewports. Header cells use the raised bevel border to match the Win2k aesthetic.