mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-06 02:12:55 +00:00
28 lines
451 B
Svelte
28 lines
451 B
Svelte
![]() |
<script lang="ts">
|
||
|
import { Input } from '$lib/components/ui/input';
|
||
|
|
||
|
export let value: string | number;
|
||
|
</script>
|
||
|
|
||
|
<div>
|
||
|
<Input
|
||
|
type="text"
|
||
|
step={1}
|
||
|
bind:value
|
||
|
on:input
|
||
|
on:change
|
||
|
class="w-[22px] {$$props.class ?? ''}"
|
||
|
{...$$restProps}
|
||
|
/>
|
||
|
</div>
|
||
|
|
||
|
<style lang="postcss">
|
||
|
div :global(input) {
|
||
|
@apply px-0.5;
|
||
|
@apply text-right;
|
||
|
@apply border-none;
|
||
|
@apply focus-visible:ring-0;
|
||
|
@apply focus-visible:ring-offset-0;
|
||
|
}
|
||
|
</style>
|