|
1 | 1 | <script setup lang="ts"> |
2 | 2 | import type { NuxtLinkProps } from '#app' |
| 3 | +import type { IconClass } from '~/types' |
3 | 4 |
|
4 | 5 | const props = withDefaults( |
5 | | - defineProps< |
6 | | - { |
7 | | - /** Disabled links will be displayed as plain text */ |
8 | | - disabled?: boolean |
9 | | - /** |
10 | | - * `type` should never be used, because this will always be a link. |
11 | | - * */ |
12 | | - type?: never |
13 | | - variant?: 'button-primary' | 'button-secondary' | 'link' |
14 | | - size?: 'small' | 'medium' |
15 | | - block?: boolean |
| 6 | + defineProps<{ |
| 7 | + /** Disabled links will be displayed as plain text */ |
| 8 | + disabled?: boolean |
| 9 | + /** |
| 10 | + * `type` should never be used, because this will always be a link. |
| 11 | + * */ |
| 12 | + type?: never |
| 13 | + variant?: 'button-primary' | 'button-secondary' | 'link' |
| 14 | + size?: 'small' | 'medium' |
| 15 | + block?: boolean |
16 | 16 |
|
17 | | - ariaKeyshortcuts?: string |
| 17 | + ariaKeyshortcuts?: string |
18 | 18 |
|
19 | | - /** |
20 | | - * Don't use this directly. This will automatically be set to `_blank` for external links passed via `to`. |
21 | | - */ |
22 | | - target?: never |
| 19 | + /** |
| 20 | + * Don't use this directly. This will automatically be set to `_blank` for external links passed via `to`. |
| 21 | + */ |
| 22 | + target?: never |
23 | 23 |
|
24 | | - /** |
25 | | - * Don't use this directly. This will automatically be set for external links passed via `to`. |
26 | | - */ |
27 | | - rel?: never |
| 24 | + /** |
| 25 | + * Don't use this directly. This will automatically be set for external links passed via `to`. |
| 26 | + */ |
| 27 | + rel?: never |
28 | 28 |
|
29 | | - classicon?: string |
| 29 | + classicon?: IconClass |
30 | 30 |
|
31 | | - to?: NuxtLinkProps['to'] |
| 31 | + to?: NuxtLinkProps['to'] |
32 | 32 |
|
33 | | - /** always use `to` instead of `href` */ |
34 | | - href?: never |
| 33 | + /** always use `to` instead of `href` */ |
| 34 | + href?: never |
35 | 35 |
|
36 | | - /** should only be used for links where the context makes it very clear they are clickable. Don't just use this, because you don't like underlines. */ |
37 | | - noUnderline?: boolean |
38 | | - } & NuxtLinkProps |
39 | | - >(), |
| 36 | + /** should only be used for links where the context makes it very clear they are clickable. Don't just use this, because you don't like underlines. */ |
| 37 | + noUnderline?: boolean |
| 38 | + }>(), |
40 | 39 | { variant: 'link', size: 'medium' }, |
41 | 40 | ) |
42 | 41 |
|
|
0 commit comments