mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-06 13:43:59 -05:00
24 lines
420 B
TypeScript
24 lines
420 B
TypeScript
import type { MattrixwvTabProps } from "$/types/Tab";
|
|
import { Tab } from "@headlessui/react";
|
|
import clsx from "clsx";
|
|
|
|
|
|
export default function MattrixwvTab(props: MattrixwvTabProps){
|
|
const {
|
|
children
|
|
} = props;
|
|
|
|
|
|
return (
|
|
<Tab
|
|
className={clsx(
|
|
"px-4 py-2",
|
|
"outline-none rounded-t-lg cursor-pointer",
|
|
"data-selected:text-blue-400 data-selected:border-b-4"
|
|
)}
|
|
>
|
|
{children}
|
|
</Tab>
|
|
);
|
|
}
|