Skip to content

Commit

Permalink
Merge branch 'main' into modernize-node-18
Browse files Browse the repository at this point in the history
  • Loading branch information
dannysheridan authored Dec 24, 2024
2 parents d28f3c3 + 03734e6 commit a29567c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions fern/pages/docs/components/cards.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ description: Use cards to display content in a box
Pass in an image tag to use a custom icon.
</Card>

### Icon position

<Card
title='Location'
icon='regular globe'
iconPosition='left'
>
You can set the icon positon as `left` or `top`. Default is `top`.
</Card>


<Aside>
<CodeBlocks>
Expand All @@ -49,6 +59,17 @@ description: Use cards to display content in a box
</Card>
```
</CodeBlock>
<CodeBlock title="Custom Icon">
```jsx
<Card
title='Location'
icon='regular globe'
iconPosition='left'
>
You can set the icon positon as `left` or `top`. Default is `top`.
</Card>
```
</CodeBlock>
</CodeBlocks>
</Aside>

0 comments on commit a29567c

Please sign in to comment.