MCPcopy Create free account
hub / github.com/better-auth/examples / Table

Function Table

astro-example/src/components/ui/table.tsx:4–15  ·  view source on GitHub ↗
(props: ComponentProps<"table">)

Source from the content-addressed store, hash-verified

2import { type ComponentProps, splitProps } from "solid-js";
3
4export const Table = (props: ComponentProps<"table">) => {
5 const [local, rest] = splitProps(props, ["class"]);
6
7 return (
8 <div class="w-full overflow-auto">
9 <table
10 class={cn("w-full caption-bottom text-sm", local.class)}
11 {...rest}
12 />
13 </div>
14 );
15};
16
17export const TableHeader = (props: ComponentProps<"thead">) => {
18 const [local, rest] = splitProps(props, ["class"]);

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected