color-synth

a synth that generates colors instead of sounds
Log | Files | Refs | README

NumberUnit.svelte (338B)


      1 <script lang="ts">
      2 	import { default as _UnitControl } from '$lib/UnitControl.svelte';
      3 	import type { UnitId } from '$lib/types';
      4 
      5 	export let id: UnitId;
      6 
      7 	const kind = 'number';
      8 	const UnitControl = _UnitControl<typeof kind>;
      9 
     10 	$: common = { kind, id } as const;
     11 </script>
     12 
     13 <div>
     14 	<UnitControl {...common} controlName="value" />
     15 </div>