DocsAPI ReferenceComponents<Drawer>

<Drawer>

A list of items that can be dragged into a <Editor.Preview>. Used for composing custom React Editor UIs.

Interactive Demo
Orange
Orange
import { Editor, Drawer } from "@reacteditor/core";
 
export function Editor() {
  return (
    <Editor>
      <Drawer>
        <Drawer.Item name="Orange" />
      </Drawer>
    </Editor>
  );
}

Props

ParamExampleTypeStatus
childrenchildren: <Drawer.Item />ReactNodeRequired

Required props

children

A React node representing the contents of the <Drawer>. Will likely contain <Drawer.Item> nodes.