MCPcopy Index your code
hub / github.com/adobe/react-spectrum / TableCell

Function TableCell

packages/dev/s2-docs/src/Table.tsx:124–137  ·  view source on GitHub ↗
({hideBorder, styles, ...props}: TableCellProps)

Source from the content-addressed store, hash-verified

122}
123
124export function TableCell({hideBorder, styles, ...props}: TableCellProps) {
125 let align = 'center';
126 if (hideBorder) {
127 align = 'bottom';
128 } else if (props.colSpan) {
129 align = 'top';
130 }
131 return (
132 <td
133 {...props}
134 className={mergeStyles(tableCell({isBorderHidden: hideBorder, align}), styles)}
135 />
136 );
137}

Callers

nothing calls this directly

Calls 1

mergeStylesFunction · 0.90

Tested by

no test coverage detected