🎥 Make videos programmatically with React
remove "_required_"
Jonny Burgerd0d4eed1febc
diff --git a/packages/docs/docs/gif/gif.mdx b/packages/docs/docs/gif/gif.mdxindex 6bae8da432..9d5914199f 100644--- a/packages/docs/docs/gif/gif.mdx+++ b/packages/docs/docs/gif/gif.mdx@@ -20,7 +20,16 @@ export const MyComponent: React.FC = () => {const {width, height} = useVideoConfig();const ref = useRef<HTMLCanvasElement>(null);- return <Gif ref={ref} src="https://media.giphy.com/media/3o72F7YT6s0EMFI0Za/giphy.gif" width={width} height={height} fit="fill" playbackRate={2} />;+ return (+ <Gif+ ref={ref}+ src="https://media.giphy.com/media/3o72F7YT6s0EMFI0Za/giphy.gif"+ width={width}+ height={height}+ fit="fill"+ playbackRate={2}+ />+ );};```@@ -28,7 +37,6 @@ export const MyComponent: React.FC = () => {### `src`-_required_The source of the GIF. Can be an URL or a local image - see [Importing assets](/docs/assets).diff --git a/packages/docs/docs/layout-utils/fill-text-box.mdx b/packages/docs/docs/layout-utils/fill-text-box.mdxindex a8354c41d4..6dbfc08a25 100644--- a/packages/docs/docs/layout-utils/fill-text-box.mdx+++ b/packages/docs/docs/layout-utils/fill-text-box.mdx@@ -34,13 +34,13 @@ The function takes the following options:### `maxBoxWidth`-_Required_ _number_+_number_The max box width, unit `px`.### `maxLines`-_Required_ _number_+_number_The max lines of the box.@@ -52,19 +52,19 @@ An object with an `add()` method, which can be used to add words to the text box#### `text`-_Required_ _string_+_string_Any string.#### `fontFamily`-_Required_ _string_+_string_Same as CSS style `font-family`.#### `fontSize`-_Required_ _number_+_number_Same as CSS style `font-size`. Only _numbers_ allowed, unit `px`.diff --git a/packages/docs/docs/layout-utils/measure-text.mdx b/packages/docs/docs/layout-utils/measure-text.mdxindex f7c28e8d0b..47f9699b88 100644--- a/packages/docs/docs/layout-utils/measure-text.mdx+++ b/packages/docs/docs/layout-utils/measure-text.mdx@@ -36,19 +36,19 @@ The function takes the following options:### `text`-_Required_ _string_+_string_Any string.### `fontFamily`-_Required_ _string_+_string_Same as CSS style `font-family`### `fontSize`-_Required_ _number_ / _string_+_number_ / _string_Same as CSS style `font-size`. Since v4.0.125, strings are allowed too, before only numbers.@@ -82,9 +82,9 @@ _boolean_If set to `true`, will take a second measurement with the fallback font and if it produces the same measurements, it assumes the fallback font was used and will throw an error.-### `additionalStyles`<AvailableFrom v="4.0.140"/>+### `additionalStyles?`<AvailableFrom v="4.0.140"/>-_object, optional_+_object_Additional CSS properties that affect the layout of the text.