@viamrobotics/prime-core
Advanced tools
Comparing version 0.0.127 to 0.0.128
@@ -52,2 +52,6 @@ import { describe, it, expect, vi } from 'vitest'; | ||
}); | ||
it('Renders with the passed href', () => { | ||
render(Pill, { value: 'link', href: 'https://www.viam.com' }); | ||
expect(screen.getByRole('link', { name: 'link' })).toHaveAttribute('href', 'https://www.viam.com'); | ||
}); | ||
}); |
@@ -7,2 +7,4 @@ import { SvelteComponent } from "svelte"; | ||
/** The text in the pill. */ value?: string; | ||
/** Optional URL that the hyperlink points to. */ href?: string; | ||
/** Optional target for linked URL. */ target?: '_self' | '_blank' | '_parent' | '_top'; | ||
/** Whether or not the pill has the aria-readonly attribute. If readonly, there is not a button to remove the pill. */ readonly?: boolean; | ||
@@ -9,0 +11,0 @@ /** Whether or not the pill is disabled. */ disabled?: boolean; |
{ | ||
"name": "@viamrobotics/prime-core", | ||
"version": "0.0.127", | ||
"version": "0.0.128", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
368393
6745