Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
<script lang="ts">
export let value: number;
export let small = false;
let clazz = '';
export { clazz as class };
$: rounded = Math.round(value*100) / 100
function onChange(e) {
value = Math.round(100 * e.target.value) / 100
}
</script>
<input class="input {clazz ? clazz : (small ? "w-[5.45rem]" : "w-[6.88rem]")}" type="number" value={rounded} step="0.1" on:change={onChange} />
<style lang="postcss">
.input {
@apply focus:border-teal-500 border border-transparent text-gray-700 focus:outline-none;
@apply border-gray-200 dark:border-transparent bg-gray-100 dark:bg-gray-700 dark:text-gray-100;
@apply appearance-none rounded ml-2.5 text-ellipsis px-2;
}
</style>
9cbd2b6ceThis file is pinned to the selected release. Download the original to open it in your design tool.