mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
Allow disable attribute for SelectableTile
This commit is contained in:
parent
66a3fd10c2
commit
6f10a335b2
1 changed files with 5 additions and 1 deletions
|
@ -1,10 +1,13 @@
|
||||||
<script>
|
<script>
|
||||||
/** Set to `true` to select the tile */
|
/** Set to `true` to select the tile*/
|
||||||
export let selected = false;
|
export let selected = false;
|
||||||
|
|
||||||
/** Set to `true` to enable the light variant */
|
/** Set to `true` to enable the light variant */
|
||||||
export let light = false;
|
export let light = false;
|
||||||
|
|
||||||
|
/** Set to `true` to disable the tile */
|
||||||
|
export let disabled = false;
|
||||||
|
|
||||||
/** Specify the title of the selectable tile */
|
/** Specify the title of the selectable tile */
|
||||||
export let title = "title";
|
export let title = "title";
|
||||||
|
|
||||||
|
@ -47,6 +50,7 @@
|
||||||
value="{value}"
|
value="{value}"
|
||||||
name="{name}"
|
name="{name}"
|
||||||
title="{title}"
|
title="{title}"
|
||||||
|
disabled="{disabled}"
|
||||||
/>
|
/>
|
||||||
<label
|
<label
|
||||||
for="{id}"
|
for="{id}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue