@megha-ui/react 1.2.192 → 1.2.193
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.
|
@@ -69,7 +69,7 @@ export const Tab = ({ label, description, tabNumber }) => {
|
|
|
69
69
|
fontSize: "0.85rem",
|
|
70
70
|
}, children: description }))] })] }) }));
|
|
71
71
|
};
|
|
72
|
-
export const TabPanel = ({ label, children, className, }) => {
|
|
72
|
+
export const TabPanel = ({ label, children, className, padding, }) => {
|
|
73
73
|
const context = useContext(TabsContext);
|
|
74
74
|
if (!context) {
|
|
75
75
|
throw new Error("TabPanel component must be used inside Tabs.");
|
|
@@ -79,5 +79,6 @@ export const TabPanel = ({ label, children, className, }) => {
|
|
|
79
79
|
return isActive ? (_jsx("div", { className: className, style: {
|
|
80
80
|
flex: 1,
|
|
81
81
|
background: "var(--background)",
|
|
82
|
+
padding: padding !== null && padding !== void 0 ? padding : "1rem"
|
|
82
83
|
}, children: children })) : null;
|
|
83
84
|
};
|
package/package.json
CHANGED