@soubiran/ui 0.8.2 → 0.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,10 @@ export interface HeaderProps {
21
21
  links: {
22
22
  icon: FunctionalComponent<SVGAttributes>
23
23
  label: string
24
- to: string
24
+ to?: string
25
+ href?: string
26
+ target?: string
27
+ rel?: string
25
28
  }[]
26
29
  class?: any
27
30
  ui?: Partial<typeof header.slots>
@@ -55,8 +58,11 @@ const ui = computed(() => header())
55
58
  variant="link"
56
59
  color="neutral"
57
60
  :to="link.to"
61
+ :href="link.href"
58
62
  :aria-label="link.label"
59
63
  :icon="link.icon"
64
+ :target="link.target"
65
+ :rel="link.rel"
60
66
  :class="ui.link({ class: props.ui?.link })"
61
67
  @click="trackClick(link.label)"
62
68
  />
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soubiran/ui",
3
3
  "type": "module",
4
- "version": "0.8.2",
4
+ "version": "0.8.4",
5
5
  "author": "Estéban Soubiran <esteban@soubiran.dev>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/Barbapapazes",