wix-style-react
Version:
wix-style-react
24 lines (22 loc) • 857 B
JavaScript
/* eslint-disable */
React.createElement(
'div',
{ style: { textAlign: 'center' } },
React.createElement(
DropdownBase,
{
'data-hook': 'story-dropdown-base-uncontrolled-click',
options: [{ id: 0, value: 'First option' }, { id: 1, value: 'Second option' }, { id: 2, value: 'Third option' }, { id: 3, value: 'Fourth option' }, { id: 4, value: 'Fifth option' }, { id: 5, value: 'Sixth option' }]
},
function (_ref) {
var toggle = _ref.toggle,
_ref$selectedOption = _ref.selectedOption,
selectedOption = _ref$selectedOption === undefined ? {} : _ref$selectedOption;
return React.createElement(
TextButton,
{ upgrade: true, skin: 'dark', suffixIcon: React.createElement(ChevronDown, null), onClick: toggle },
selectedOption.value || 'Please choose'
);
}
)
);