🎥 Make videos programmatically with React
Docs: Restructure <Img> props and fix <Solid> inherited props heading
Jonny Burger39a09d8d7524
diff --git a/packages/docs/docs/img.mdx b/packages/docs/docs/img.mdxindex 9c3bc5b203..b2368e3c9a 100644--- a/packages/docs/docs/img.mdx+++ b/packages/docs/docs/img.mdx@@ -11,38 +11,6 @@ If you use `<Img>`, Remotion will ensure that the image is loaded before renderi## API-### `from?`<AvailableFrom v="4.0.465" />--At which frame this clip should start relative to the parent timeline. Default is `0`. Same meaning as [`from`](/docs/sequence#from) on [`<Sequence>`](/docs/sequence).--### `durationInFrames?`<AvailableFrom v="4.0.465" />--For how many frames the clip stays mounted. Default is `Infinity`. Same meaning as [`durationInFrames`](/docs/sequence#durationinframes) on [`<Sequence>`](/docs/sequence).--:::note-You can still wrap `<Img>` in an outer [`<Sequence>`](/docs/sequence). Timing [cascades](/docs/sequence#cascading) like nested sequences.-:::--```tsx twoslash title="Clip starting at frame 30, lasting 90 frames"-import {AbsoluteFill, Img, staticFile} from 'remotion';--export const MyComp: React.FC = () => {- return (- <AbsoluteFill>- <Img from={30} durationInFrames={90} src={staticFile('hi.png')} />- </AbsoluteFill>- );-};-```--### `hidden?`<AvailableFrom v="4.0.465" />--If set to `true`, the image is not rendered and does not appear in the timeline. Same meaning as [`hidden`](/docs/sequence#hidden) on [`<Sequence>`](/docs/sequence).--### `name?`--A label for the clip in the Remotion Studio timeline. If not specified, the filename is used.-### `src`[Put an image into the `public/` folder](/docs/assets) and use [`staticFile()`](/docs/staticfile) to reference it.@@ -116,7 +84,27 @@ Customize the [timeout](/docs/delay-render#modifying-the-timeout) of the [`delayCustomize the [number of retries](/docs/delay-render#retrying) of the [`delayRender()`](/docs/delay-render) call that this component makes.Prefer the [`maxRetries`](#maxretries) prop over this.-## Other props+### Inherited props<AvailableFrom v="4.0.465" />++`<Img>` inherits [`from`](/docs/sequence#from), [`durationInFrames`](/docs/sequence#durationinframes), [`name`](/docs/sequence#name), [`showInTimeline`](/docs/sequence#showintimeline) and [`hidden`](/docs/sequence#hidden) from [`<Sequence>`](/docs/sequence). If `name` is not specified, the filename is used.++:::note+You can still wrap `<Img>` in an outer [`<Sequence>`](/docs/sequence). Timing [cascades](/docs/sequence#cascading) like nested sequences.+:::++```tsx twoslash title="Clip starting at frame 30, lasting 90 frames"+import {AbsoluteFill, Img, staticFile} from 'remotion';++export const MyComp: React.FC = () => {+ return (+ <AbsoluteFill>+ <Img from={30} durationInFrames={90} src={staticFile('hi.png')} />+ </AbsoluteFill>+ );+};+```++### Other propsRemotion inherits the props of the regular `<img>` tag, like for example `style`.diff --git a/packages/docs/docs/solid.mdx b/packages/docs/docs/solid.mdxindex b907202f51..63fae8537c 100644--- a/packages/docs/docs/solid.mdx+++ b/packages/docs/docs/solid.mdx@@ -44,9 +44,9 @@ A class name to apply to the `<canvas>` element.Inline styles to apply to the `<canvas>` element.-## Inherited props+### Inherited props-`<Solid>` inherits [`from`](/docs/sequence#from), [`durationInFrames`](/docs/sequence#durationinframes), [`name`](/docs/sequence#name), [`showInTimeline`](/docs/sequence#showintimeline) and [`hidden`](/docs/sequence#hidden) from `<Sequence>`.+`<Solid>` inherits [`from`](/docs/sequence#from), [`durationInFrames`](/docs/sequence#durationinframes), [`name`](/docs/sequence#name), [`showInTimeline`](/docs/sequence#showintimeline) and [`hidden`](/docs/sequence#hidden) from [`<Sequence>`](/docs/sequence).## Adding a ref