@@ -11,12 +11,13 @@ A component for displaying external links with consistent styling. Perfect for s
1111
1212### NqLinksItem Interface
1313
14- | Name | Type | Default | Description |
15- | ------- | -------- | ----------- | ---------------------------------------------- |
16- | ` label ` | ` string ` | required | The text displayed for the link |
17- | ` href ` | ` string ` | required | The URL the link points to |
18- | ` icon ` | ` string ` | ` undefined ` | Optional icon class (e.g., ` i-nimiq:external ` ) |
19- | ` title ` | ` string ` | ` undefined ` | Optional tooltip text for accessibility |
14+ | Name | Type | Default | Description |
15+ | --------- | -------- | ------------------- | ------------------------------------------------------------------------ |
16+ | ` label ` | ` string ` | required | The text displayed for the link |
17+ | ` href ` | ` string ` | required | The URL the link points to |
18+ | ` icon ` | ` string ` | ` undefined ` | Optional icon class (e.g., ` i-nimiq:external ` ) |
19+ | ` variant ` | ` string ` | ` nq-pill-secondary ` | Pill variant: ` blue ` , ` gold ` , ` green ` , ` secondary ` , ` tertiary ` , ` orange ` |
20+ | ` title ` | ` string ` | ` undefined ` | Optional tooltip text for accessibility |
2021
2122All links automatically open in a new tab with ` target="_blank" ` and include ` rel="noopener noreferrer" ` for security.
2223
@@ -98,6 +99,37 @@ Simple text links without icons for minimal designs.
9899
99100</ComponentPreview >
100101
102+ ### Links with Different Variants
103+
104+ Use different pill variants to color-code your links.
105+
106+ <ComponentPreview lang =" vue " >
107+
108+ <NqPlayground >
109+ <NqLinks : items ="[
110+ {
111+ label: 'Documentation',
112+ href: '/docs',
113+ variant: 'nq-pill-blue',
114+ icon: 'i-nimiq: book '
115+ },
116+ {
117+ label: 'API Reference',
118+ href: '/api',
119+ variant: 'nq-pill-green',
120+ icon: 'i-nimiq: code '
121+ },
122+ {
123+ label: 'Support',
124+ href: '/support',
125+ variant: 'nq-pill-orange',
126+ icon: 'i-nimiq: help '
127+ }
128+ ] " />
129+ </NqPlayground >
130+
131+ </ComponentPreview >
132+
101133## Usage Notes
102134
103135- Use either ` item ` for a single link or ` items ` for multiple links, not both
0 commit comments