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

Function Separator

starters/hooks/src/Separator.tsx:5–15  ·  view source on GitHub ↗
(props: SeparatorProps)

Source from the content-addressed store, hash-verified

3import './Separator.css';
4
5export function Separator(props: SeparatorProps) {
6 let {separatorProps} = useSeparator(props);
7
8 return (
9 <div
10 {...separatorProps}
11 className="react-aria-Separator"
12 data-orientation={props.orientation || 'horizontal'}
13 />
14 );
15}

Callers

nothing calls this directly

Calls 1

useSeparatorFunction · 0.90

Tested by

no test coverage detected