diff --git a/src/client/index.tsx b/src/client/index.tsx index 206ce7b..d042984 100644 --- a/src/client/index.tsx +++ b/src/client/index.tsx @@ -290,14 +290,31 @@ const TabContent = define('TabContent', { } }) -const NavButton = define('NavButton', { - render({ props }) { - return ( - - ) - } +const TabBar = define('TabBar', { + display: 'flex', + gap: 24, + marginBottom: 20, +}) + +const Tab = define('Tab', { + base: 'button', + padding: '6px 0', + background: 'none', + border: 'none', + borderBottom: '2px solid transparent', + cursor: 'pointer', + fontSize: 14, + color: theme('colors-textMuted'), + selectors: { + '&:hover': { color: theme('colors-text') }, + }, + variants: { + active: { + color: theme('colors-text'), + borderBottomColor: theme('colors-primary'), + fontWeight: 500, + }, + }, }) function setSelectedTab(tab: 'overview' | 'todo') { @@ -306,10 +323,12 @@ function setSelectedTab(tab: 'overview' | 'todo') { } const Nav = () => { - return <> - setSelectedTab('overview')}>Overview - setSelectedTab('todo')}>TODO - + return ( + + setSelectedTab('overview')}>Overview + setSelectedTab('todo')}>TODO + + ) } const stateLabels: Record = {