Skip to content

Commit

Permalink
explicitly name icon sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshfarrant committed Dec 2, 2024
1 parent 1938d8e commit ffd9258
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions apps/docs/content/components/Icon.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,9 @@ import {Icon} from '@primer/react-brand'

```jsx live
<Stack direction="vertical">
{namedIconSizes.map((size) => (
<Icon
key={size}
icon={CopilotIcon}
size={size}
color="green"
hasBackground
/>
))}
<Icon icon={CopilotIcon} size="small" />
<Icon icon={CopilotIcon} size="medium" />
<Icon icon={CopilotIcon} size="large" />
</Stack>
```

Expand Down

0 comments on commit ffd9258

Please sign in to comment.