--- title: DropdownContainer sidebar_label: DropdownContainer --- import { StoryWithControls } from '../../../src/components/StorybookWrapper'; # DropdownContainer DropdownContainer arranges items horizontally and moves overflowing items into a dropdown popover. Resize the container to see the overflow behavior. ## Live Example ## Try It Edit the code below to experiment with the component: ```tsx live function Demo() { const items = Array.from({ length: 6 }, (_, i) => ({ id: 'item-' + i, element: React.createElement('div', { style: { minWidth: 120, padding: '4px 12px', background: '#e6f4ff', border: '1px solid #91caff', borderRadius: 4, }, }, 'Filter ' + (i + 1)), })); return (
Drag the right edge to resize and see items overflow into a dropdown
); } ``` ## With Select Filters ```tsx live function SelectFilters() { const items = ['Region', 'Category', 'Date Range', 'Status', 'Owner'].map( (label, i) => ({ id: 'filter-' + i, element: React.createElement('div', { style: { minWidth: 150, padding: '4px 12px', background: '#f5f5f5', border: '1px solid #d9d9d9', borderRadius: 4 }, }, label + ': All'), }) ); return (
); } ``` ## Import ```tsx import { DropdownContainer } from '@superset/components'; ``` --- :::tip[Improve this page] This documentation is auto-generated from the component's Storybook story. Help improve it by [editing the story file](https://github.com/apache/superset/edit/master/superset-frontend/packages/superset-ui-core/src/components/DropdownContainer/DropdownContainer.stories.tsx). :::