@jill64/svelte-input
Version:
➡️ Functional Input Component Set for Svelte
21 lines (20 loc) • 772 B
TypeScript
import type { HTMLInputAttributes } from 'svelte/elements';
type $$ComponentProps = {
step?: number;
max?: number;
min?: number;
value?: number;
Class?: HTMLInputAttributes['class'];
style?: HTMLInputAttributes['style'];
buttonClass?: HTMLInputAttributes['class'];
buttonStyle?: HTMLInputAttributes['style'];
placeholder?: HTMLInputAttributes['placeholder'];
disabled?: HTMLInputAttributes['disabled'];
required?: HTMLInputAttributes['required'];
readonly?: HTMLInputAttributes['readonly'];
attributes?: HTMLInputAttributes;
onChange?: (value: number) => unknown;
};
declare const Decimal: import("svelte").Component<$$ComponentProps, {}, "value">;
type Decimal = ReturnType<typeof Decimal>;
export default Decimal;