Skip to content

🎥 Make videos programmatically with React

update info

Jonny Burgereb869204a855
diff --git a/packages/docs/components/demos/styles.module.css b/packages/docs/components/demos/styles.module.css
index d9dd6159a6..3afb9ee23a 100644
--- a/packages/docs/components/demos/styles.module.css
+++ b/packages/docs/components/demos/styles.module.css
@@ -28,9 +28,13 @@
.item:nth-child(2n+1):nth-last-child(-n+2) ~ .item {
border-bottom: transparent;
}
+
+ .item:nth-child(2n) {
+ border-right: transparent;
+ }
}
-@media screen and (max-width: 1200px) {
+@media screen and (max-width: 1300px) {
.containerrow {
grid-template-columns: 1fr;
}
diff --git a/packages/docs/components/shapes/edge-roundness.tsx b/packages/docs/components/shapes/edge-roundness.tsx
index 89c4aad9a8..714e274d6c 100644
--- a/packages/docs/components/shapes/edge-roundness.tsx
+++ b/packages/docs/components/shapes/edge-roundness.tsx
@@ -111,6 +111,9 @@ export const RectEdgeRoundness: React.FC = () => {
</td>
</tr>
</table>{" "}
+ <p>
+ Cannot be used together with <code>cornerRadius</code>.
+ </p>
</>
);
};
@@ -192,6 +195,9 @@ export const TriangleEdgeRoundness = () => {
</td>
</tr>
</table>{" "}
+ <p>
+ Cannot be used together with <code>cornerRadius</code>.
+ </p>
</>
);
};
diff --git a/packages/docs/components/shapes/shapes-info.tsx b/packages/docs/components/shapes/shapes-info.tsx
index 0abb6d7e75..3d821ecb98 100644
--- a/packages/docs/components/shapes/shapes-info.tsx
+++ b/packages/docs/components/shapes/shapes-info.tsx
@@ -183,10 +183,31 @@ export const ShapeOptions: React.FC<{
</React.Fragment>
);
})}
+ {all &&
+ (shapeComponent.shape === "Rect" ||
+ shapeComponent.shape === "Triangle") ? (
+ <>
+ <h3>
+ <code>cornerRadius</code>
+ </h3>
+ <p>
+ <em>number</em>
+ </p>
+ <p>
+ Rounds the corner using an arc. Similar to {"CSS's"}{" "}
+ <code>border-radius</code>. Cannot be used together with{" "}
+ <code>edgeRoundness</code>.
+ </p>
+ </>
+ ) : null}
+
{shapeComponent.shape === "Rect" ? <RectEdgeRoundness /> : null}
{shapeComponent.shape === "Triangle" ? <TriangleEdgeRoundness /> : null}
- {all && shapeComponent.shape === "Rect" ? <DebugOption /> : null}
- {all && shapeComponent.shape === "Triangle" ? <DebugOption /> : null}
+ {all &&
+ (shapeComponent.shape === "Rect" ||
+ shapeComponent.shape === "Triangle") ? (
+ <DebugOption />
+ ) : null}
{all ? (
<>
<h3>Other props</h3>{" "}