(props: SeparatorProps)
| 480 | }); |
| 481 | |
| 482 | export 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 | |
| 506 | export interface MenuSectionProps<T> extends Omit< |
| 507 | AriaMenuSectionProps<T>, |
nothing calls this directly
no test coverage detected