Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 26 additions & 28 deletions app/components/Link/Base.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,39 @@ import type { NuxtLinkProps } from '#app'
import type { IconClass } from '~/types'

const props = withDefaults(
defineProps<
{
/** Disabled links will be displayed as plain text */
disabled?: boolean
/**
* `type` should never be used, because this will always be a link.
* */
type?: never
variant?: 'button-primary' | 'button-secondary' | 'link'
size?: 'small' | 'medium'
block?: boolean
defineProps<{
/** Disabled links will be displayed as plain text */
disabled?: boolean
/**
* `type` should never be used, because this will always be a link.
* */
type?: never
variant?: 'button-primary' | 'button-secondary' | 'link'
size?: 'small' | 'medium'
block?: boolean

ariaKeyshortcuts?: string
ariaKeyshortcuts?: string

/**
* Don't use this directly. This will automatically be set to `_blank` for external links passed via `to`.
*/
target?: never
/**
* Don't use this directly. This will automatically be set to `_blank` for external links passed via `to`.
*/
target?: never

/**
* Don't use this directly. This will automatically be set for external links passed via `to`.
*/
rel?: never
/**
* Don't use this directly. This will automatically be set for external links passed via `to`.
*/
rel?: never

classicon?: IconClass
classicon?: IconClass

to?: NuxtLinkProps['to']
to?: NuxtLinkProps['to']

/** always use `to` instead of `href` */
href?: never
/** always use `to` instead of `href` */
href?: never

/** 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. */
noUnderline?: boolean
} & NuxtLinkProps
>(),
/** 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. */
noUnderline?: boolean
}>(),
{ variant: 'link', size: 'medium' },
)

Expand Down
Loading