12345678910111213141516171819 |
- import React from 'react';
- import classnames from 'classnames';
- type Props = {
- underlined?: boolean;
- className?: string;
- };
- type NavProps = Omit<React.HTMLProps<HTMLUListElement>, keyof Props> & Props;
- function NavTabs(props: NavProps) {
- const {underlined, className, ...tabProps} = props;
- const mergedClassName = classnames('nav nav-tabs', className, {
- 'border-bottom': underlined,
- });
- return <ul className={mergedClassName} {...tabProps} />;
- }
- export default NavTabs;
|