fileIcon.stories.js 459 B

123456789101112131415161718192021
  1. import FileIcon from 'sentry/components/fileIcon';
  2. export default {
  3. title: 'Assets/Icons/File Icon',
  4. component: FileIcon,
  5. args: {
  6. fileName: 'src/components/testComponent.tsx',
  7. size: 'xl',
  8. },
  9. };
  10. export const _FileIcon = ({...args}) => <FileIcon {...args} />;
  11. _FileIcon.storyName = 'File Icon';
  12. _FileIcon.parameters = {
  13. docs: {
  14. description: {
  15. story: 'Shows a platform icon for given filename - based on extension',
  16. },
  17. },
  18. };