platformList.stories.js 658 B

12345678910111213141516171819202122232425262728293031
  1. import styled from '@emotion/styled';
  2. import PlatformList from 'sentry/components/platformList';
  3. import space from 'sentry/styles/space';
  4. export default {
  5. title: 'Assets/Platforms/Platform List',
  6. component: PlatformList,
  7. };
  8. const platforms = ['java', 'php', 'javascript', 'cocoa', 'ruby'];
  9. export const _PlatformList = ({...args}) => (
  10. <Wrapper>
  11. <PlatformList {...args} />
  12. </Wrapper>
  13. );
  14. _PlatformList.storyName = 'Platform List';
  15. _PlatformList.args = {
  16. platforms,
  17. showCounter: false,
  18. max: platforms.length,
  19. size: 28,
  20. };
  21. const Wrapper = styled('div')`
  22. padding: ${space(3)};
  23. background: ${p => p.theme.white};
  24. display: flex;
  25. `;