import React from 'react';
import { number, withKnobs } from '@storybook/addon-knobs';
import Dropdown from './dropdown';
import DropdownItem from './dropdown-item';
import DropdownDivider from './dropdown-divider';
import SvgIcon from '../svg-icon';
import Button from '../button';
export default {
title: 'Navigation | Dropdown',
decorators: [withKnobs],
};
export const _default = () => (
(
)}>
Awesome Dropdown
}>Check Time
} right="CTRL+A">
Create Branch
} disabled>
Disabled Action
}>Other Action
}>Don't Do it!
);
export const rightAlign = () => (
(
)}>
Item 1
Item 2
Item 3
);
export const manyItems = () => {
const items = [];
const numItems = number('Num Items', 100);
for (let i = 0; i < numItems; i++) {
items.push(Item {i + 1});
}
return (
(
)}>
{items}
);
};