<Canvas ctx={ctx}><DropdownrenderTrigger={({ open, onClick }) => (<ButtononClick={onClick}rightIcon={open ? <CaretUpIcon /> : <CaretDownIcon />}>Options</Button>)}><DropdownMenu><DropdownOption onClick={() => {}}>Edit</DropdownOption><DropdownOption disabled onClick={() => {}}>Duplicate</DropdownOption><DropdownSeparator /><DropdownOption red onClick={() => {}}>Delete</DropdownOption></DropdownMenu></Dropdown></Canvas>
<Canvas ctx={ctx}><DropdownrenderTrigger={({ open, onClick }) => (<ButtononClick={onClick}rightIcon={open ? <CaretUpIcon /> : <CaretDownIcon />}>Fields</Button>)}><DropdownMenu><DropdownOption>First option<DropdownOptionAction icon={<PlusIcon />} onClick={() => {}} /><DropdownOptionActionredicon={<TrashIcon />}onClick={() => {}}/></DropdownOption><DropdownOption>Second option<DropdownOptionAction icon={<PlusIcon />} onClick={() => {}} /><DropdownOptionActionredicon={<TrashIcon />}onClick={() => {}}/></DropdownOption></DropdownMenu></Dropdown></Canvas>
<Canvas ctx={ctx}><DropdownrenderTrigger={({ open, onClick }) => (<ButtononClick={onClick}rightIcon={open ? <CaretUpIcon /> : <CaretDownIcon />}>Fields</Button>)}><DropdownMenu><DropdownGroup name="Group 1"><DropdownOption>Foo</DropdownOption><DropdownOption>Bar</DropdownOption><DropdownOption>Qux</DropdownOption></DropdownGroup><DropdownGroup name="Group 2"><DropdownOption>Foo</DropdownOption><DropdownOption>Bar</DropdownOption><DropdownOption>Qux</DropdownOption></DropdownGroup><DropdownGroup name="Group 3"><DropdownOption>Foo</DropdownOption><DropdownOption>Bar</DropdownOption><DropdownOption>Qux</DropdownOption></DropdownGroup></DropdownMenu></Dropdown></Canvas>