Debian Codegraph @

node/@patternfly/react-core/src/components/Tabs/TabTitleText.tsx

raw
1 import { css } from '@patternfly/react-styles';
2 import styles from '@patternfly/react-styles/css/components/Tabs/tabs';
3
4 export interface TabTitleTextProps extends React.HTMLProps<HTMLSpanElement> {
5 /** Text to be rendered inside the tab button title. */
6 children: React.ReactNode;
7 /** additional classes added to the tab title text */
8 className?: string;
9 }
10
11 export const TabTitleText: React.FunctionComponent<TabTitleTextProps> = ({
12 children,
13 className = '',
14 ...props
15 }: TabTitleTextProps) => (
16 <span className={css(styles.tabsItemText, className)} {...props}>
17 {children}
18 </span>
19 );
20 TabTitleText.displayName = 'TabTitleText';