Skip to content

Commit b59f1c2

Browse files
committed
chore(docs): revise isBlurred note
1 parent 463278a commit b59f1c2

File tree

1 file changed

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

1 file changed

+1
-9
lines changed

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

+1-9
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,7 @@ 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-
> **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-
```
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.
8779
8880
<CodeDemo isGradientBox title="Blurred Card" files={cardContent.blurred} />
8981

0 commit comments

Comments
 (0)