synapsecns/sanguine

View on GitHub
packages/synapse-interface/components/ui/tailwind/Tabs.tsx

Summary

Maintainability
A
1 hr
Test Coverage
import Grid from '@tw/Grid'

export default function Tabs({
  children,
  numTabs = 2,
  ...props
}: {
  children: any
  numTabs?: number
  props?: any
}) {
  return (
    <Grid gap={0} aria-label="Tabs" cols={{ xs: 2, sm: numTabs }} {...props}>
      {children}
    </Grid>
  )
}