carbon-react
Version:
A library of reusable React components for easily building user interfaces.
10 lines (9 loc) • 485 B
TypeScript
import { FlexboxProps, LayoutProps } from "styled-system";
import { TagProps } from "../../__internal__/utils/helpers/tags";
export type MenuType = "light" | "dark" | "white" | "black";
export interface MenuProps extends TagProps, Pick<LayoutProps, "width" | "minWidth" | "maxWidth" | "overflow" | "overflowX" | "verticalAlign">, FlexboxProps {
/** Children elements */
children: React.ReactNode;
/** Defines the color scheme of the component */
menuType?: MenuType;
}