import { splitProps, type Component, type JSX, type Ref } from "solid-js"; import type { TabBarVariant } from "./tab-bar"; import { tabIndicatorStyle } from "./tab-indicator.css"; export type TabIndicatorProps = & Omit, "children"> & { variant: TabBarVariant } export const TabIndicator: Component = (props) => { const [local, others] = splitProps( props, ["ref", "class", "variant"], ); return (
} class={ tabIndicatorStyle({ variant: local.variant }) } {...others} /> ); }