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

Function useStyle

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

Source from the content-addressed store, hash-verified

852}
853
854function useStyle(layoutInfo: LayoutInfo, parent: LayoutInfo | null) {
855 let {direction} = useLocale();
856 let style = layoutInfoToStyle(layoutInfo, direction, parent);
857 if (style.overflow === 'hidden') {
858 style.overflow = 'visible'; // needed to support position: sticky
859 }
860 return style;
861}
862
863function TableHeader({
864 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