Skip to content

Commit 5d9f338

Browse files
macci001Maharshi Alpeshwingkwong
authored
refactor(docs): example of blurred card (#3741)
* docs(card): adding info regarding the gradient for blurred card * chore(nit): adding example * chore(docs): revise content for card isBlurred example * chore(docs): revise isBlurred note --------- Co-authored-by: Maharshi Alpesh <maharshialpesh@Maharshi-Book.local> Co-authored-by: WK Wong <wingkwong.code@gmail.com>
1 parent 2e82f16 commit 5d9f338

File tree

1 file changed

+3
-1
lines changed
  • apps/docs/content/docs/components

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ You can use other NextUI components inside the card to compose a more complex ca
7373

7474
### Blurred Card
7575

76-
You can pass the `isBlurred` prop to the card to blur the card.
76+
You can pass the `isBlurred` prop to the card to blur the card. Card gets blurred properties based on its ancestor element.
77+
78+
> **Note**: To achieve the blur effect as seen in the preview, you need to provide a suitable background (e.g., `bg-gradient-to-tr from-[#FFB457] to-[#FF705B]`) to an ancestor element of the Card component allowing the Card's blur effect to be visible.
7779
7880
<CodeDemo isGradientBox title="Blurred Card" files={cardContent.blurred} />
7981

0 commit comments

Comments
 (0)