mdc-react
Version:
Material Components for the web implemented in React
20 lines (15 loc) • 480 B
JSX
import { forwardRef } from 'react';
import classnames from 'classnames';
import { cssClasses } from './constants';
const TopAppBarTitle = forwardRef(({
element: Element = 'span',
className,
...props
}, ref) => {
const classNames = classnames(cssClasses.TITLE, className);
return (
<Element ref={ref} className={classNames} {...props} />
);
});
TopAppBarTitle.displayName = 'MDCTopAppBarTitle';
export default TopAppBarTitle;