DefaultSidebar
Configure the standard sidebar included with the RVE SDK editor
The RVE SDK includes DefaultSidebar inside ReactVideoEditor. It provides the icon rail and the panels for video, camera, text, audio, captions, images, shapes, Lottie, zoom, background, templates, and settings.
You normally configure the sidebar through ReactVideoEditor. You do not copy or import an internal sidebar source file.
Set screenRecordingTools to add a focused Home panel for screen recordings. See Screen Recorder mode for the minimal setup and optional camera and cursor data.
Basic Use
The default sidebar is visible when you render ReactVideoEditor:
import { ReactVideoEditor } from '@reactvideoeditor/react-video-editor/react-video-editor';
import '@reactvideoeditor/react-video-editor/styles.css';
export default function VideoEditor() {
return (
<ReactVideoEditor
projectId="my-project"
fps={30}
/>
);
}Configure the Sidebar
Use the sidebar props on ReactVideoEditor:
import { ReactVideoEditor } from '@reactvideoeditor/react-video-editor/react-video-editor';
export default function VideoEditor() {
const logo = (
<img src="/my-logo.svg" alt="My Editor" width={32} height={32} />
);
return (
<ReactVideoEditor
projectId="my-project"
fps={30}
sidebarLogo={logo}
sidebarFooterText="My Video Editor"
sidebarWidth="400px"
sidebarIconWidth="57.6px"
disabledPanels={['shape', 'template']}
showIconTitles={false}
/>
);
}Sidebar Props
| Prop | Type | Default | Description |
|---|---|---|---|
showSidebar | boolean | true | Show or hide the standard sidebar |
sidebarLogo | React.ReactNode | RVE logo | Set the logo in the sidebar header |
sidebarFooterText | string | - | Set the text in the sidebar footer |
sidebarWidth | string | "256px" ("400px" with screenRecordingTools) | Set the width of the content panel |
sidebarIconWidth | string | "48px" | Set the width of the icon rail |
disabledPanels | string[] | [] | Hide panels by id. See Panel IDs |
showIconTitles | boolean | true | Show or hide labels under sidebar icons |
customSidebar | React.ReactNode | - | Replace the standard sidebar |
screenRecordingTools | boolean | false | Add and open the beta screen-recording Home panel |
Panel IDs
Use these ids in disabledPanels. The icon rail shows the panels in this order.
| ID | Panel | Note |
|---|---|---|
general | General | Only with screenRecordingTools |
pointer | Cursor | Only when a recording has cursor data |
video | Video | |
camera | Camera | |
text | Text | |
sound | Audio | |
caption | Caption | |
image | Image | |
shape | Shapes | See Shapes |
lottie | Lottie | |
zoom | Zoom | |
background | Background | |
template | Templates | See Templates |
The Settings panel is always available.
Stickers removed
The Stickers panel is removed. Shapes, Lottie, and templates replace it. If your code has 'sticker' or OverlayType.STICKER in disabledPanels, delete it.
Mobile navigation
disabledPanels applies to the desktop sidebar. The mobile navigation does not read it.
Replace the Sidebar
Pass your own component with customSidebar:
<ReactVideoEditor
projectId="my-project"
customSidebar={<MyCustomSidebar />}
/>When you set customSidebar, the SDK does not show DefaultSidebar.
Responsive Behavior
- Desktop layouts use the icon rail and content panel.
- Mobile layouts use the SDK mobile navigation.
- Set
disableMobileLayoutonReactVideoEditorif your application must keep the desktop layout.
See the full ReactVideoEditor props reference for other layout and editor settings.