antd#MenuProps TypeScript Examples

The following examples show how to use antd#MenuProps. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HorizontalMenu.tsx    From jmix-frontend with Apache License 2.0 6 votes vote down vote up
export function HorizontalMenu<T = MenuProps>({children, style, ...restProps}: Props & T) {
  return (
    <Menu
      mode={"horizontal"}
      style={{ 
        height: "100%", 
        borderRight: 0 ,
        ...style
      }}
      {...restProps}
    >
      {children}
    </Menu>
  )
}
Example #2
Source File: VerticalMenu.tsx    From jmix-frontend with Apache License 2.0 6 votes vote down vote up
export function VerticalMenu<T = MenuProps>({children, style, ...restProps}: Props & T) {
  return (
    <Menu
      mode={"inline"}
      style={{ 
        height: "100%", 
        borderRight: 0 ,
        ...style
      }}
      {...restProps}
    >
      {children}
    </Menu>
  )
}