MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / AnimatedTabs

Function AnimatedTabs

src/components/reusable/AnimatedTabs.tsx:63–90  ·  view source on GitHub ↗
({
  tabs,
  selected,
  setSelected,
  center,
  customID,
  icons = [],
}: AnimatedTabsProps)

Source from the content-addressed store, hash-verified

61}
62
63const AnimatedTabs = ({
64 tabs,
65 selected,
66 setSelected,
67 center,
68 customID,
69 icons = [],
70}: AnimatedTabsProps) => {
71 return (
72 <div
73 className={
74 (center ? 'justify-center ' : '') +
75 'flex w-full items-center justify-end gap-2 border-gray-500/25 pb-1 '
76 }
77 >
78 {tabs?.map((tab, index) => (
79 <Tab
80 text={tab}
81 selected={selected === tab}
82 setSelected={setSelected}
83 key={tab}
84 customID={customID}
85 icon={icons[index]}
86 />
87 ))}
88 </div>
89 )
90}
91
92export default AnimatedTabs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected