mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
21 lines
508 B
TypeScript
21 lines
508 B
TypeScript
import styled from '@emotion/styled';
|
|
import classnames from 'classnames';
|
|
|
|
interface NavProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
underlined?: boolean;
|
|
}
|
|
|
|
function NavTabs({underlined, className, ...tabProps}: NavProps) {
|
|
const mergedClassName = classnames('nav nav-tabs', className, {
|
|
'border-bottom': underlined,
|
|
});
|
|
|
|
return <Wrap className={mergedClassName} {...tabProps} />;
|
|
}
|
|
|
|
export default NavTabs;
|
|
|
|
const Wrap = styled('ul')`
|
|
font-size: ${p => p.theme.fontSizeMedium};
|
|
`;
|