Skip to content

🎥 Make videos programmatically with React

Apply forwarded styles last in interactive component examples

Jonny Burger784eb228b909
diff --git a/packages/docs/docs/interactive-create.mdx b/packages/docs/docs/interactive-create.mdx
index 6caea57992..92a53d7dd2 100644
--- a/packages/docs/docs/interactive-create.mdx
+++ b/packages/docs/docs/interactive-create.mdx
@@ -39,11 +39,11 @@ const CircleInner: React.FC<CircleProps> = ({radius = 80, color = '#0b84ff', sty
return (
<div
style={{
- ...style,
width: radius * 2,
height: radius * 2,
borderRadius: '50%',
backgroundColor: color,
+ ...style,
}}
/>
);
diff --git a/packages/docs/docs/interactive-with-schema.mdx b/packages/docs/docs/interactive-with-schema.mdx
index 92037a6f3a..68a3dc978f 100644
--- a/packages/docs/docs/interactive-with-schema.mdx
+++ b/packages/docs/docs/interactive-with-schema.mdx
@@ -43,11 +43,11 @@ const CircleInner: React.FC<CircleProps> = ({radius = 80, color = '#0b84ff', sty
return (
<div
style={{
- ...style,
width: radius * 2,
height: radius * 2,
borderRadius: '50%',
backgroundColor: color,
+ ...style,
}}
/>
);
diff --git a/packages/docs/docs/studio/make-component-interactive.mdx b/packages/docs/docs/studio/make-component-interactive.mdx
index dabc302b79..fe71938ae8 100644
--- a/packages/docs/docs/studio/make-component-interactive.mdx
+++ b/packages/docs/docs/studio/make-component-interactive.mdx
@@ -30,13 +30,13 @@ export const BadgeInner: React.FC<BadgeProps> = ({children, color = '#0b84ff', p
return (
<div
style={{
- ...style,
display: 'inline-flex',
borderRadius: 999,
backgroundColor: color,
color: 'white',
fontWeight: 700,
padding,
+ ...style,
}}
>
{children}
@@ -109,13 +109,13 @@ const BadgeInner: React.FC<BadgeProps> = ({children, color = '#0b84ff', padding
return (
<div
style={{
- ...style,
display: 'inline-flex',
borderRadius: 999,
backgroundColor: color,
color: 'white',
fontWeight: 700,
padding,
+ ...style,
}}
>
{children}