Skip to content

Commit

Permalink
refactor(icons): move componets/icon to elements/icons (#18316)
Browse files Browse the repository at this point in the history
  • Loading branch information
makafsal authored Jan 10, 2025
1 parent 9840477 commit e973f28
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
variants={[
{
label: 'Default',
variant: 'components-icon--default'
variant: 'elements-icons--default'
},
{
label: 'With Custom Class',
variant: 'components-icon--with-custom-class'
variant: 'elements-icons--with-custom-class'
},
{
label: 'With aria-label',
variant: 'components-icon--with-aria-label'
variant: 'elements-icons--with-aria-label'
},
{
label: 'With Title',
variant: 'components-icon--with-title'
variant: 'elements-icons--with-title'
}
]}
/>
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ArgTypes, Meta } from '@storybook/blocks';
import * as IconStories from './icon.stories';
import * as IconsStories from './icons.stories';

<Meta of={IconStories} />
<Meta of={IconsStories} />

# Icon
# Icons

Icons can be utilized by specifying the icon name and size in the import.

Expand All @@ -27,5 +27,5 @@ function App() {
);
```
Icon library can be found
Icons library can be found
[here](https://www.carbondesignsystem.com/guidelines/icons/library).
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const withTitle = {
};

const meta = {
title: 'Components/Icon',
title: 'Elements/Icons',
};

export default meta;

0 comments on commit e973f28

Please sign in to comment.