Skip to content

Commit 25057bd

Browse files
authored
Merge pull request #14836 from Baystef/migrate/gas
Migrate Gas page to Tailwind/Shadcn
2 parents 8da55ef + 75e916a commit 25057bd

File tree

2 files changed

+184
-189
lines changed

2 files changed

+184
-189
lines changed

src/components/ui/Table.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,18 @@ const TableCell = React.forwardRef<
166166
})
167167
TableCell.displayName = "TableCell"
168168

169+
const TableCaption = React.forwardRef<
170+
HTMLTableCaptionElement,
171+
React.HTMLAttributes<HTMLTableCaptionElement>
172+
>(({ className, ...props }, ref) => (
173+
<caption
174+
ref={ref}
175+
className={cn("mt-4 text-sm text-body-medium", className)}
176+
{...props}
177+
/>
178+
))
179+
TableCaption.displayName = "TableCaption"
180+
169181
const mdxTableComponents = {
170182
table: Table,
171183
td: ({ align, ...rest }) => <TableCell align={align} {...rest} />,
@@ -179,6 +191,7 @@ export {
179191
mdxTableComponents,
180192
Table,
181193
TableBody,
194+
TableCaption,
182195
TableCell,
183196
TableHead,
184197
TableHeader,

0 commit comments

Comments
 (0)