14 lines
2.1 KiB
JSON
14 lines
2.1 KiB
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
"name": "typography-table",
|
|
"type": "registry:example",
|
|
"author": "shadcn (https://ui.shadcn.com)",
|
|
"files": [
|
|
{
|
|
"path": "examples/typography-table.tsx",
|
|
"content": "export default function TypographyTable() {\n return (\n <div className=\"my-6 w-full overflow-y-auto\">\n <table className=\"w-full\">\n <thead>\n <tr className=\"m-0 border-t p-0 even:bg-muted\">\n <th className=\"border px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right\">\n King's Treasury\n </th>\n <th className=\"border px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right\">\n People's happiness\n </th>\n </tr>\n </thead>\n <tbody>\n <tr className=\"m-0 border-t p-0 even:bg-muted\">\n <td className=\"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right\">\n Empty\n </td>\n <td className=\"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right\">\n Overflowing\n </td>\n </tr>\n <tr className=\"m-0 border-t p-0 even:bg-muted\">\n <td className=\"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right\">\n Modest\n </td>\n <td className=\"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right\">\n Satisfied\n </td>\n </tr>\n <tr className=\"m-0 border-t p-0 even:bg-muted\">\n <td className=\"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right\">\n Full\n </td>\n <td className=\"border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right\">\n Ecstatic\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n )\n}\n",
|
|
"type": "registry:example",
|
|
"target": ""
|
|
}
|
|
]
|
|
} |