fix(link): change href description and default value

This commit is contained in:
albert 2020-10-04 20:25:36 +02:00
commit 115f032317
3 changed files with 5 additions and 4 deletions

View file

@ -2179,6 +2179,7 @@ import { Link } from "carbon-components-svelte";
| Prop name | Type | Default value | | Prop name | Type | Default value |
| :-------- | :--------------------------------------------------------------------- | :------------ | | :-------- | :--------------------------------------------------------------------- | :------------ |
| href | <code>string</code> | -- |
| inline | <code>boolean</code> | false | | inline | <code>boolean</code> | false |
| disabled | <code>boolean</code> | false | | disabled | <code>boolean</code> | false |
| visited | <code>boolean</code> | false | | visited | <code>boolean</code> | false |

View file

@ -1,9 +1,9 @@
<script> <script>
/** /**
* Specify href value * Specify the href value
* @type {string} [href] * @type {string} [href]
*/ */
export let href; export let href = undefined;
/** /**
* Set to `true` to use the inline variant * Set to `true` to use the inline variant

4
types/index.d.ts vendored
View file

@ -1885,9 +1885,9 @@ export class InlineNotification extends CarbonSvelteComponent {
export class Link extends CarbonSvelteComponent { export class Link extends CarbonSvelteComponent {
$$prop_def: { $$prop_def: {
/** /**
* Specify href value * Specify the href value
*/ */
href: string; href?: string;
/** /**
* Set to `true` to use the inline variant * Set to `true` to use the inline variant