Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 463278a

Browse files
committedSep 28, 2024·
chore(docs): revise content for card isBlurred example
1 parent aab5e30 commit 463278a

File tree

1 file changed

+10
-2
lines changed
  • apps/docs/content/docs/components

1 file changed

+10
-2
lines changed
 

‎apps/docs/content/docs/components/card.mdx

+10-2
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,17 @@ You can use other NextUI components inside the card to compose a more complex ca
7575

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

78-
<CodeDemo isGradientBox title="Blurred Card" files={cardContent.blurred} />
78+
> **Note**: To achieve the blur effect as seen in the preview, you need to provide a suitable background to an ancestor element of the Card component. The following example adds a gradient background to a parent div, allowing the Card's blur effect to be visible.
79+
80+
```jsx
81+
<div className="bg-gradient-to-tr from-[#FFB457] to-[#FF705B]">
82+
<Card isBlurred>
83+
{/* Card content */}
84+
</Card>
85+
</div>
86+
```
7987

80-
**Note**: While trying out the above example, it is required to provide the necessary background(eg. adding `bg-gradient-to-tr from-[#FFB457] to-[#FF705B]` classes) to any ancestor element of the Card component to obtain the `blur` effect as seen in the preview.
88+
<CodeDemo isGradientBox title="Blurred Card" files={cardContent.blurred} />
8189

8290
### Primary Action
8391

0 commit comments

Comments
 (0)
Please sign in to comment.