@@ -3,48 +3,46 @@ import type { NuxtLinkProps } from '#app'
33import type { IconClass } from ' ~/types'
44
55const props = withDefaults (
6- defineProps <
7- {
8- /** Disabled links will be displayed as plain text */
9- disabled?: boolean
10- /**
11- * `type` should never be used, because this will always be a link.
12- * */
13- type ?: never
14- variant ?: ' button-primary' | ' button-secondary' | ' link'
15- size ?: ' small' | ' medium'
16- 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
1716
18- ariaKeyshortcuts ?: string
17+ ariaKeyshortcuts? : string
1918
20- /**
21- * Don't use this directly. This will automatically be set to `_blank` for external links passed via `to`.
22- */
23- 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
2423
25- /**
26- * Don't use this directly. This will automatically be set for external links passed via `to`.
27- */
28- rel ?: never
24+ /**
25+ * Don't use this directly. This will automatically be set for external links passed via `to`.
26+ */
27+ rel? : never
2928
30- classicon ?: IconClass
29+ classicon? : IconClass
3130
32- to ?: NuxtLinkProps [' to' ]
31+ to? : NuxtLinkProps [' to' ]
3332
34- /** always use `to` instead of `href` */
35- href ?: never
33+ /** always use `to` instead of `href` */
34+ href? : never
3635
37- /** 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. */
38- noUnderline ?: boolean
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
3938
40- /**
41- * should external link icon be displayed?.
42- *
43- * @default false
44- */
45- noExternalIcon ?: boolean
46- } & NuxtLinkProps
47- > (),
39+ /**
40+ * should external link icon be displayed?.
41+ *
42+ * @default false
43+ */
44+ noExternalIcon? : boolean
45+ }>(),
4846 { variant: ' link' , size: ' medium' , noUnderline: false , noExternalIcon: false },
4947)
5048
0 commit comments