Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(docs): example of blurred card #3741

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion apps/docs/content/docs/components/card.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,12 @@ You can use other NextUI components inside the card to compose a more complex ca

### Blurred Card

You can pass the `isBlurred` prop to the card to blur the card.
You can pass the `isBlurred` prop to the card to blur the card. Card gets blurred properties based on its ancestor element.

<CodeDemo isGradientBox title="Blurred Card" files={cardContent.blurred} />

**Note**: While trying out the above example, it is required to provide the necessary background to any ancestor element of the Card component to obtain the `blur` effect as seen in the preview.
wingkwong marked this conversation as resolved.
Show resolved Hide resolved

### Primary Action

If you pass the `isPressable` prop to the card, it will be rendered as a button.
Expand Down