Glass Table
washiveil/glass-tableFreeComponent
Data table in the washi editorial register — mono uppercase header, soft row dividers.
Install it
npx shadcn@latest add https://washiveil.alexchih.com/r/glass-table.jsonSource
1import * as React from 'react'23import { cn } from '@/lib/utils'45function GlassTable({ className, ...props }: React.ComponentProps<'table'>) {6 return (7 <div className="overflow-x-auto">8 <table className={cn('w-full text-left text-sm', className)} {...props} />9 </div>10 )11}1213function GlassTableHeader({ className, ...props }: React.ComponentProps<'thead'>) {14 return <thead className={cn('[&_tr]:border-b [&_tr]:border-border', className)} {...props} />15}1617function GlassTableBody({ className, ...props }: React.ComponentProps<'tbody'>) {18 return <tbody className={cn('[&_tr:last-child]:border-0', className)} {...props} />19}2021function GlassTableFooter({ className, ...props }: React.ComponentProps<'tfoot'>) {22 return <tfoot className={cn('border-t border-border font-medium', className)} {...props} />23}2425function GlassTableRow({ className, ...props }: React.ComponentProps<'tr'>) {26 return (27 <tr28 className={cn('border-b border-foreground/10 last:border-0 transition-colors hover:bg-foreground/3', className)}29 {...props}30 />31 )32}3334function GlassTableHead({ className, ...props }: React.ComponentProps<'th'>) {35 return (36 <th37 className={cn('py-2 pr-4 font-mono text-[0.75rem] tracking-[0.2em] uppercase text-muted-foreground font-normal', className)}38 {...props}39 />40 )41}4243function GlassTableCell({ className, ...props }: React.ComponentProps<'td'>) {44 return <td className={cn('py-2 pr-4', className)} {...props} />45}4647function GlassTableCaption({ className, ...props }: React.ComponentProps<'caption'>) {48 return <caption className={cn('mt-3 text-xs text-muted-foreground', className)} {...props} />49}5051export {52 GlassTable,53 GlassTableHeader,54 GlassTableBody,55 GlassTableFooter,56 GlassTableRow,57 GlassTableHead,58 GlassTableCell,59 GlassTableCaption,60}
What it pulls in
Other registry items
Files it writes
More from washiveil
All 58 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Ambient Fieldambient-field | washiveil | Components | Free | no deps | |
| Chipchip | washiveil | Components | Free | 1 dep | |
| Code Badgecode-badge | washiveil | Components | Free | no deps | |
| Glass Accordionglass-accordion | washiveil | Components | Free | 2 deps | |
| Glass Alertglass-alert | washiveil | Components | Free | 1 dep | |
| Glass Alert Dialogglass-alert-dialog | washiveil | Components | Free | 1 dep | |
| Glass Aspect Ratioglass-aspect-ratio | washiveil | Components | Free | 1 dep | |
| Glass Avatarglass-avatar | washiveil | Components | Free | 1 dep |
