UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

18 lines (17 loc) 757 B
import React from "react"; import { VariantType } from "../menu-item"; import { TagProps } from "../../../__internal__/utils/helpers/tags"; declare const AS_VALUES: readonly ["h2", "h3", "h4", "h5", "h6"]; type AllowedAsValues = (typeof AS_VALUES)[number]; export interface MenuTitleProps extends TagProps { children?: React.ReactNode; text: string; /** Set the colour variant for a menuType */ variant?: VariantType; /** Set the heading level for the segment title */ as?: AllowedAsValues; /** Data tag prop bag for segmented children */ segmentWrapperProps?: TagProps; } declare const MenuSegmentTitle: React.ForwardRefExoticComponent<MenuTitleProps & React.RefAttributes<HTMLDivElement>>; export default MenuSegmentTitle;