@megha-ui/react 1.2.194 → 1.2.196

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,7 @@ export declare const Tabs: React.FC<TabsProps>;
11
11
  interface TabListProps {
12
12
  children: ReactNode;
13
13
  width?: string | number;
14
+ className?: string;
14
15
  }
15
16
  export declare const TabList: React.FC<TabListProps>;
16
17
  interface TabProps {
@@ -19,13 +19,13 @@ export const Tabs = ({ children, defaultActive, className, type = "horizontal",
19
19
  overflow: "hidden",
20
20
  }, children: children }) }));
21
21
  };
22
- export const TabList = ({ children, width }) => {
22
+ export const TabList = ({ children, width, className }) => {
23
23
  const context = useContext(TabsContext);
24
24
  if (!context) {
25
25
  throw new Error("TabList component must be used inside Tabs.");
26
26
  }
27
27
  const { type } = context;
28
- return (_jsx("div", { style: {
28
+ return (_jsx("div", { className: className, style: {
29
29
  display: "flex",
30
30
  flexDirection: type === "vertical" ? "column" : "row",
31
31
  width: width ? width : type === "vertical" ? "25%" : "100%",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.194",
3
+ "version": "1.2.196",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",