type Values = string | number interface TabUnderlineProps { activeValue: string onChange: (x: T) => void values: T[] names?: Array small?: boolean fillWidth?: boolean } const TabUnderline = ({ activeValue, values, names, onChange, small, fillWidth = true, }: TabUnderlineProps) => { return (
v === activeValue) * 100 }%)`, width: `${100 / values.length}%`, }} />
) } export default TabUnderline