You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`href`|`string`|`undefined`| Where your card wants to teleport users to |
10
+
|`bg-color`|`string`|`undefined`| The mood lighting for your card |
11
+
|`icon`|`string`|`undefined`| The tiny picture that makes your card feel important |
12
+
|`title`|`string`|`undefined`| The card's title |
13
+
|`description`|`string`|`undefined`| The card's description |
14
+
|`label`|`string`|`undefined`| Optional label displayed above the title |
15
+
16
+
The component also supports using slots for custom content instead of props.
13
17
14
18
> [!TIP]
15
19
> Remember to [register `NqCard`](/vitepress-theme/#register-the-components) in your app. It's like introducing your components to a party - they need to be on the guest list!
16
20
17
21
## Examples
18
22
19
-
<ComponentPreviewlang="Vue">
20
-
21
-
<NqCard>
23
+
<ComponentPreviewlang="vue">
22
24
23
-
#### The Lonely Card
24
-
25
-
I'm just sitting here, carrying some content. No fancy links, no colors - I'm the minimalist of cards.
26
-
27
-
</NqCard>
25
+
<NqCard
26
+
title="The Lonely Card"
27
+
description="I'm just sitting here, carrying some content. No fancy links, no colors - I'm the minimalist of cards."
28
+
/>
28
29
29
30
</ComponentPreview>
30
31
31
-
<ComponentPreviewlang="Vue">
32
-
33
-
<NqCardhref="https://nimiq.com">
34
-
35
-
#### The Adventurous Card
36
-
37
-
Click me! I'll take you on a journey to the Nimiq website. I promise it's better than your average cat video.
32
+
<ComponentPreviewlang="vue">
38
33
39
-
</NqCard>
34
+
<NqCard
35
+
href="https://nimiq.com"
36
+
title="The Adventurous Card"
37
+
description="Click me! I'll take you on a journey to the Nimiq website. I promise it's better than your average cat video."
0 commit comments