chore: lift components folder

This commit is contained in:
Eric Liu 2020-07-19 09:06:08 -07:00
commit 2200b29b92
301 changed files with 57 additions and 76 deletions

View file

@ -0,0 +1,33 @@
<script>
export let checked = false;
export let title = "title";
export let value = "value";
export let id = "ccs-" + Math.random().toString(36);
export let name = "";
export let ref = null;
import { getContext } from "svelte";
const { selectedValue, update } = getContext("StructuredListWrapper");
if (checked) {
update(value);
}
$: checked = $selectedValue === value;
</script>
<input
bind:this={ref}
type="radio"
tabindex="-1"
{checked}
{id}
{name}
{title}
{value}
class:bx--structured-list-input={true}
{...$$restProps}
on:change={() => {
update(value);
}} />