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

Function centerBaseline

packages/@react-spectrum/s2/src/CenterBaseline.tsx:67–71  ·  view source on GitHub ↗
(
  props: Omit<CenterBaselineProps, 'children'> = {}
)

Source from the content-addressed store, hash-verified

65);
66
67export function centerBaseline(
68 props: Omit<CenterBaselineProps, 'children'> = {}
69): (icon: ReactNode) => ReactNode {
70 return (icon: ReactNode) => <CenterBaseline {...props}>{icon}</CenterBaseline>;
71}

Callers 15

Button.tsxFile · 0.90
TabFunction · 0.90
TreeViewItemContentFunction · 0.90
PickerFunction · 0.90
PickerItemFunction · 0.90
MenuItemFunction · 0.90
ToggleButton.tsxFile · 0.90
SideNavItemContentInnerFunction · 0.90
SideNavItemLinkFunction · 0.90
ComboBoxItemFunction · 0.90
SearchField.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected