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

Function CenterBaseline

packages/@react-spectrum/s2/src/CenterBaseline.tsx:50–61  ·  view source on GitHub ↗
(props: CenterBaselineProps)

Source from the content-addressed store, hash-verified

48 * </span>;
49 */
50export function CenterBaseline(props: CenterBaselineProps): ReactNode {
51 let domProps = filterDOMProps(props);
52 return (
53 <div
54 {...domProps}
55 slot={props.slot}
56 style={props.style}
57 className={mergeStyles(styles, props.styles) + ' ' + centerBaselineBefore}>
58 {props.children}
59 </div>
60 );
61}
62
63export const centerBaselineBefore = css(
64 '&::before { content: "\u00a0"; width: 0; visibility: hidden }'

Callers

nothing calls this directly

Calls 2

filterDOMPropsFunction · 0.90
mergeStylesFunction · 0.90

Tested by

no test coverage detected