{% extends "base.html" %} {% import "components/macros.html" as ui %} {% block title %}Tables - Design System Wiki{% endblock %} {% block content %}
{% include "docs/sidebar.html" %}
Layout & Navigation

Tables

A standardized container macro for table styling and scrollbar-fitting layout. It resolves common styling issues like corner clipping and header bleed-through.

Container Showcase

The macro standardizes the background styling, shadows, rounded borders, vertical height bounds, and sticky headers.

{{ ui::table_container_open(id="docs-demo-table", max_height="250px") }}
ID Code Full Name Position Title Base Office Current Shift Status Actions & Config
#001_a9f Arthur Dent Sandwich Maker Space Station 4 ACTIVE
#002_c3d Tricia McMillan Reporter / Anchor Sector 12 Office ON DUTY
#003_e5f Ford Prefect Researcher Betelgeuse V TRAVELING
#004_g7h Zaphod Beeblebrox Ex-President Heart of Gold SUSPENDED
{{ ui::table_container_close(id="docs-demo-table") }}

How It Works

Stylized Container Wrapper

Tables are automatically styled with rounded-3xl corners and background styling. The table container is scrollable, displaying a native horizontal or vertical scrollbar as needed.

Rounded Corner Clipping Fix

To prevent scrollbars from clipping at the corners of high-radius panels (like Shadcn's rounded-3xl panels), the border and shadow styling are kept on the outer wrapper, while the overflow scroll boundary is restricted to an inner container with slightly smaller radius adjustments (rounded-[22px]).

{% endblock %}