platformIcon.stories.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import styled from '@emotion/styled';
  2. import {PlatformIcon} from 'platformicons';
  3. const StyledPlatformIcon = styled(PlatformIcon)`
  4. margin: 0 15px 15px 0;
  5. `;
  6. export default {
  7. title: 'Assets/Platforms/Platform Icons',
  8. component: PlatformIcon,
  9. };
  10. export const _PlatformIcon = () => (
  11. <div>
  12. <StyledPlatformIcon platform="generic" size="24" />
  13. <StyledPlatformIcon platform="javascript-angular" size="24" />
  14. <StyledPlatformIcon platform="java-appengine" size="24" />
  15. <StyledPlatformIcon platform="apple" size="24" />
  16. <StyledPlatformIcon platform="python-bottle" size="24" />
  17. <StyledPlatformIcon platform="cordova" size="24" />
  18. <StyledPlatformIcon platform="csharp" size="24" />
  19. <StyledPlatformIcon platform="python-django" size="24" />
  20. <StyledPlatformIcon platform="electron" size="24" />
  21. <StyledPlatformIcon platform="elixir" size="24" />
  22. <StyledPlatformIcon platform="javascript-ember" size="24" />
  23. <StyledPlatformIcon platform="python-flask" size="24" />
  24. <StyledPlatformIcon platform="go" size="24" />
  25. <StyledPlatformIcon platform="java" size="24" />
  26. <StyledPlatformIcon platform="node" size="24" />
  27. <StyledPlatformIcon platform="php" size="24" />
  28. <StyledPlatformIcon platform="perl" size="24" />
  29. <StyledPlatformIcon platform="python" size="24" />
  30. <StyledPlatformIcon platform="ruby-rails" size="24" />
  31. <StyledPlatformIcon platform="javascript-react" size="24" />
  32. <StyledPlatformIcon platform="ruby" size="24" />
  33. <StyledPlatformIcon platform="rust" size="24" />
  34. <StyledPlatformIcon platform="swift" size="24" />
  35. <StyledPlatformIcon platform="javascript-vue" size="24" />
  36. </div>
  37. );
  38. _PlatformIcon.storyName = 'Platform Icons';
  39. _PlatformIcon.parameters = {
  40. docs: {
  41. description: {
  42. story: 'Scalable platform and framework icons',
  43. },
  44. },
  45. };