@while-and-for/tremor-react
Version:
The React library to build dashboards faster.
3 lines (2 loc) • 604 B
JavaScript
'use client';
import{__rest as e}from"tslib";import r from"react";import{makeClassName as a}from"../../../lib/utils.js";import{tremorTwMerge as o}from"../../../lib/tremorTwMerge.js";import{Tab as t}from"@headlessui/react";const n=a("TabGroup"),s=r.forwardRef(((a,s)=>{const{defaultIndex:d,index:l,onIndexChange:i,children:m,className:f}=a,c=e(a,["defaultIndex","index","onIndexChange","children","className"]);return r.createElement(t.Group,Object.assign({as:"div",ref:s,defaultIndex:d,selectedIndex:l,onChange:i,className:o(n("root"),"w-full",f)},c),m)}));s.displayName="TabGroup";export{s as default};