@rudra-studio/rudra-layout 1.0.22 → 1.0.23
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.
|
@@ -107,5 +107,12 @@ export interface SectionProps extends Omit<React.HTMLAttributes<HTMLElement>, "c
|
|
|
107
107
|
* ]
|
|
108
108
|
*/
|
|
109
109
|
className?: string;
|
|
110
|
+
/**
|
|
111
|
+
* The Custom Attributes Dictionary
|
|
112
|
+
* We use additionalProperties to tell the schema it's a dynamic key-value object
|
|
113
|
+
* @type|complex
|
|
114
|
+
* @schema {"type":"object"}
|
|
115
|
+
*/
|
|
116
|
+
customAttributes?: Record<string, string>;
|
|
110
117
|
}
|
|
111
|
-
export default function Section({ children, as, className, ...props }: SectionProps): import("react/jsx-runtime").JSX.Element;
|
|
118
|
+
export default function Section({ children, as, className, customAttributes, ...props }: SectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/Section/index.tsx
|
|
4
|
-
function t({ children: t, as: n = "section", className: r = "",
|
|
4
|
+
function t({ children: t, as: n = "section", className: r = "", customAttributes: i = {}, ...a }) {
|
|
5
5
|
return /* @__PURE__ */ e(n, {
|
|
6
|
+
...a,
|
|
6
7
|
...i,
|
|
7
8
|
className: ["w-full", r].filter(Boolean).join(" "),
|
|
8
9
|
children: t
|
package/package.json
CHANGED