- Preview -
- {isHtmlTailwind && component.files["index.html"] ? ( -+ Preview +
+ {isHtmlTailwind && component.files["index.html"] ? ( ++ Vue Component Preview +
++ This Vue component uses SFC syntax that requires + compilation. +
++ The component code is available in the Code + section below. +
++ Preview not available for {component.framework} components +
+- Vue Component Preview -
-- This Vue component uses SFC syntax that requires - compilation. -
-- The component code is available in the Code section - below. -
-- Preview not available for {component.framework} components -
+ {/* Optional: Show demo URL prominently if available */} + {component.demoUrl && ( + )} -- Documentation & Code -
+ {/* Code Section - Two Panel Layout */} ++ Documentation & Code +
-- README.md -
-- {component.name} -
-- A feature-rich {component.category} component designed - for {component.framework} applications. -
-
- Author:{" "}
-
+ {/* README Panel */}
+
+ A feature-rich {component.category} component designed
+ for {component.framework} applications.
+
+ Author:{" "}
+
+ @{component.author}
+
+
+ README.md
+
+
+ {component.name}
+
+
- Features
-
-
-
+
+ Features
+
+
+
-
- Installation
-
-
-
+
+ Installation
+
+
+
- {component.props && component.props.length > 0 && (
- <>
-
- Props
-
-
-
-
+
-
-
-
- {component.props.map((prop, index) => (
-
- Prop
-
-
- Type
-
-
- Description
-
-
-
+ {component.props.map((prop, index) => (
+
- {prop.name}
-
-
- {prop.type}
-
-
- {prop.description}
-
+ {component.props && component.props.length > 0 && (
+ <>
+
+ Props
+
+
+
+
-
+
- ))}
-
-
+ Prop
+
+
+ Type
+
+
+ Description
+
+
+ ))}
+
+
+ {prop.name}
+
+
+ {prop.type}
+
+
+ {prop.description}
+
+
- Customization
-
-
-
+
+ Customization
+
+
+
+