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

Function Divider

packages/@react-spectrum/s2/src/Menu.tsx:482–504  ·  view source on GitHub ↗
(props: SeparatorProps)

Source from the content-addressed store, hash-verified

480});
481
482export function Divider(props: SeparatorProps): ReactNode {
483 return (
484 <Separator
485 {...props}
486 className={mergeStyles(
487 divider({
488 size: 'M',
489 orientation: 'horizontal',
490 isStaticColor: false
491 }),
492 style({
493 display: {
494 default: 'grid',
495 ':last-child': 'none'
496 },
497 gridColumnStart: 2,
498 gridColumnEnd: -2,
499 marginY: size(5) // height of the menu separator is 12px, and the divider is 2px
500 })
501 )}
502 />
503 );
504}
505
506export interface MenuSectionProps<T> extends Omit<
507 AriaMenuSectionProps<T>,

Callers

nothing calls this directly

Calls 2

mergeStylesFunction · 0.90
sizeFunction · 0.90

Tested by

no test coverage detected