)
}
//
export type MenuDividerProps = HTMLAttributes
function MenuDividerEl(
props: MenuDividerProps,
ref: ForwardedRef,
) {
const pandoStyles = getMenuDividerStyles({
classNames: splitClassNameProp(props.className),
})
return
}
// exports
/**
* A horizontal line that separates menu items.
* @param props anything you can pass to an HTMLHRElement
* @see https://design.pluralsight.com/docs/reference/components/menu
*/
export const MenuDivider = forwardRef(
MenuDividerEl,
)
/**
* Container for a list of menu items.
* @param props anything you can pass to an HTMLUListElement
* @see https://design.pluralsight.com/docs/reference/components/menu
*/
export const MenuList = memo(MenuListEl)
/**
* The clickable item in a menu that is used for navigation.
* @param props anything you can pass to an HTMLAnchorElement
* @param as an alternative link element type to render (defaults to 'a')
* @param icon an icon to display to the left of the content
* @see https://design.pluralsight.com/docs/reference/components/menu
*/
export const MenuItem = forwardRef(MenuItemEl)
/**
* The clickable item in a menu that is used for selection.
* @param props anything you can pass to an HTMLOptionElement
* @param description an optional description to display below the content
* @see https://design.pluralsight.com/docs/reference/components/menu
*/
export const MenuOption = forwardRef(
MenuOptionEl,
)