MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Table

Function Table

starters/tailwind/src/Table.tsx:36–50  ·  view source on GitHub ↗
(props: TableProps)

Source from the content-addressed store, hash-verified

34}
35
36export function Table(props: TableProps) {
37 return (
38 <ResizableTableContainer
39 onScroll={props.onScroll}
40 className={twMerge(
41 'w-full max-h-[320px] overflow-auto scroll-pt-[2.281rem] relative bg-white dark:bg-neutral-900 box-border border border-neutral-300 dark:border-neutral-700 rounded-lg font-sans',
42 props.className
43 )}>
44 <AriaTable
45 {...props}
46 className="border-separate border-spacing-0 box-border overflow-hidden has-[>[data-empty]]:h-full"
47 />
48 </ResizableTableContainer>
49 );
50}
51
52const columnStyles = tv({
53 extend: focusRing,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected