Sections
Components
- AlertBanner
- AlertDialog
- Alert
- Avatar
- Badge
- Breadcrumb
- Button
- CalendarIcon
- CellLayout
- CellLink
- Checkbox
- Collapse
- ContentSwitcher
- ControlLabel
- DatePicker
- Dialog
- Divider
- Drawer
- EmptyCell
- EmptyState
- Empty
- ErrorOverlay
- FilterBar
- FilterChips
- Flex
- GridLayout
- HumanisedDate
- Icon
- InputDuration
- InputField
- Input
- Label
- Loader
- MoreActions
- NumberInput
- OutsideClickHandler
- PageLoader
- Page
- Popconfirm
- Popover
- ProgressPie
- Progress
- RadioButtonGroup
- RadioGroup
- Radio
- RelativeTime
- Resizable
- SearchInput
- Select
- SkeletonText
- Skeleton
- Space
- SquadAvatarList
- StatusPicker
- Stepper
- Switch
- TableLight
- Tabs
- Tag
- Text
- Textarea
- Toast
- Tooltip
- TriggerSelect
- Upload
import { TableLight } from "@/rl-ui";
<TableLight className="w-full">
<thead>
<tr>
<th>Name</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>Acme</td>
<td>Active</td>
</tr>
</tbody>
</TableLight>Examples#
Typical markup#
Pass standard table sections as children. Live preview shows a compact stand-in; copy the code for full markup.
import { TableLight } from "@/rl-ui";
<TableLight>
<thead>
<tr>
<th>Project</th>
<th>Owner</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>Acme rollout</td>
<td>Ada</td>
<td>Active</td>
</tr>
<tr>
<td>Northstar</td>
<td>Alan</td>
<td>At risk</td>
</tr>
</tbody>
</TableLight>With cell helpers#
Compose CellLink, CellLayout, Badge, and EmptyCell inside real <td> cells.
import {
TableLight,
CellLink,
CellLayout,
Badge,
EmptyCell,
} from "@/rl-ui";
<TableLight>
<thead>
<tr>
<th>Name</th>
<th>Status</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<CellLink href="#acme">Acme rollout</CellLink>
</td>
<td>
<CellLayout gap="2">
<Badge color="green">Active</Badge>
</CellLayout>
</td>
<td>
<EmptyCell />
</td>
</tr>
</tbody>
</TableLight>Compact density#
import { TableLight } from "@/rl-ui";
<TableLight className="text-xs">
<thead>
<tr><th>Key</th><th>Value</th></tr>
</thead>
<tbody>
<tr><td>Region</td><td>US-East</td></tr>
<tr><td>Tier</td><td>Pro</td></tr>
</tbody>
</TableLight>API#
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Classes on the inner <table>. |
children | ReactNode | — | Native thead/tbody/tr/th/td (or caption) markup. |
… | HTMLAttributes<table> | — | All native table attributes (id, aria-*, etc.). |