Skip to content

Commit

Permalink
Merge pull request #28 from storybookjs/fix-releases
Browse files Browse the repository at this point in the history
Add the X icon
  • Loading branch information
cdedreuille authored Mar 11, 2024
2 parents 976e885 + 29bab3d commit a45a917
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/iconList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const iconList = [
'YoutubeIcon',
'VSCodeIcon',
'LinkedinIcon',
'XIcon',
]
},
{
Expand Down
12 changes: 12 additions & 0 deletions src/icons/XIcon.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { Meta, StoryObj } from '@storybook/react';

import { XIcon } from './XIcon';

const meta: Meta<typeof XIcon> = {
component: XIcon,
};

export default meta;
type Story = StoryObj<typeof XIcon>;

export const Default: Story = { args: { size: 100 } };
23 changes: 23 additions & 0 deletions src/icons/XIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import * as React from 'react';
import { IconProps } from '../types';

export const XIcon = /* @__PURE__ */ React.forwardRef<SVGSVGElement, IconProps>(
({ color = 'currentColor', size = 14, ...props }, forwardedRef) => {
return (
<svg
width={size}
height={size}
viewBox="0 0 14 14"
fill="none"
xmlns="http://www.w3.org/2000/svg"
ref={forwardedRef}
{...props}
>
<path
d="M11.02.446h2.137L8.49 5.816l5.51 7.28H9.67L6.298 8.683l-3.88 4.413H.282l5.004-5.735L0 .446h4.442l3.064 4.048L11.02.446zm-.759 11.357h1.18L3.796 1.655H2.502l7.759 10.148z"
fill={color}
/>
</svg>
);
}
);
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export { TwitterIcon } from './icons/TwitterIcon';
export { YoutubeIcon } from './icons/YoutubeIcon';
export { VSCodeIcon } from './icons/VSCodeIcon';
export { LinkedinIcon } from './icons/LinkedinIcon';
export { XIcon } from './icons/XIcon';
export { BrowserIcon } from './icons/BrowserIcon';
export { TabletIcon } from './icons/TabletIcon';
export { MobileIcon } from './icons/MobileIcon';
Expand Down

0 comments on commit a45a917

Please sign in to comment.