Sha256: 144355947ecd98968e2988fff36fc657c00ae7569520c96b714a051c7a1df8a5
Contents?: true
Size: 397 Bytes
Versions: 4
Compression:
Stored size: 397 Bytes
Contents
import React from "react"; interface TabPanelProps { active: boolean; children: React.ReactNode; } export default function TabPanel(props: TabPanelProps) { const { active, children } = props; const classNames = ["content-tab"]; if (!active) { classNames.push("hidden"); } return ( <div className={classNames.join(" ")} role="tabpanel"> {children} </div> ); }
Version data entries
4 entries across 4 versions & 1 rubygems