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

Function useStyle

packages/@adobe/react-spectrum/src/table/TableViewBase.tsx:849–856  ·  view source on GitHub ↗
(layoutInfo: LayoutInfo, parent: LayoutInfo | null)

Source from the content-addressed store, hash-verified

847}
848
849function useStyle(layoutInfo: LayoutInfo, parent: LayoutInfo | null) {
850 let {direction} = useLocale();
851 let style = layoutInfoToStyle(layoutInfo, direction, parent);
852 if (style.overflow === 'hidden') {
853 style.overflow = 'visible'; // needed to support position: sticky
854 }
855 return style;
856}
857
858function TableHeader({
859 children,

Callers 4

TableHeaderFunction · 0.85
TableRowGroupFunction · 0.85
TableRowFunction · 0.85
TableHeaderRowFunction · 0.85

Calls 2

useLocaleFunction · 0.90
layoutInfoToStyleFunction · 0.90

Tested by

no test coverage detected