Merge pull request #254 from josefaidt/253-anchor-href-prop

fix(tile): add href prop
This commit is contained in:
Eric Liu 2020-09-16 12:35:31 -07:00 committed by GitHub
commit fd79a5ce87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,12 @@
* @type {boolean} [light=false]
*/
export let light = false;
/**
* Set the `href`
* @type {string} [href]
*/
export let href = undefined;
</script>
<!-- svelte-ignore a11y-missing-attribute -->
@ -19,6 +25,7 @@
class:bx--tile--is-clicked="{clicked}"
class:bx--tile--light="{light}"
{...$$restProps}
href="{href}"
on:click
on:click="{() => {
clicked = !clicked;