Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
disabled: false,
error: false,
alignment: Object.values(DROPDOWN_ALIGNMENT),
errorMessage: '',
options,
initialSelectedId: '',
onChange: option => console.log(option),
},
dataHook: 'storybook-Dropdown',
sections: [
header(),
tabs([
tab({
title: 'Usage',
sections: [
description(Readme),
divider(),
title('Examples'),
...[
{ title: 'Simple', source: examples.simpleExample },
{ title: 'Disabled', source: examples.disabledExample },
{ title: 'w. label', source: examples.withLabelExample },
{ title: 'Centered', source: examples.alignmentExample },
{ title: 'Error', source: examples.errorExample },
{
title: 'Error with message',
source: examples.errorWithMessageExample,
},
{