このコミットが含まれているのは:
2025-07-13 02:46:13 +09:00
コミット 0c46cf28db
29個のファイルの変更509行の追加456行の削除
+2 -2
ファイルの表示
@@ -5,13 +5,13 @@ type TabProps = { name: string
init?: boolean
children: React.ReactNode }
type Props = { children: React.ReactElement<TabProps>[] }
type Props = { children: React.ReactNode }
export const Tab = ({ children }: TabProps) => <>{children}</>
export default ({ children }: Props) => {
const tabs = React.Children.toArray (children)
const tabs = React.Children.toArray (children) as React.ReactElement<TabProps>[]
const [current, setCurrent] = useState<number> (() => {
const i = tabs.findIndex (tab => tab.props.init)