UNPKG

@dvcol/neo-svelte

Version:

Neomorphic ui library for svelte 5

33 lines (32 loc) 992 B
import type { NeoButtonProps } from '../buttons/neo-button.model.js'; import type { NeoInputProps } from './common/neo-input.model.js'; export type NeoNumberStepProps = NeoInputProps & { /** * Custom icon for the plus button. */ iconPlus?: NeoButtonProps['icon']; /** * Custom icon for the minus button. */ iconMinus?: NeoButtonProps['icon']; /** * Center the input value. */ center?: boolean; /** * Event handler for the step-up button. */ onStepUp?: (e: MouseEvent, value: number, step?: string | number) => void; /** * Event handler for the step-down button. */ onStepDown?: (e: MouseEvent, value: number, step?: string | number) => void; /** * Button properties to pass to the increment and decrement buttons. */ buttonProps?: NeoButtonProps; /** * Input Group properties to pass to the input group container. */ groupProps?: NeoInputProps['containerProps']; };