UNPKG

@specialdoom/solid-rev-kit

Version:

RevKit UI implementation for SolidJS

29 lines (23 loc) 1.19 kB
# Counter component ### Usage ```jsx import { Counter } from '@specialdoom/solid-rev-kit'; const Container = () => ( <> <Counter value={6} /> <Counter value={1} minValue={-2} maxValue={2} /> <Counter value={2} disabled /> </> ); ``` ### API | Property | Description | Type | Default | | -------- | ----------------------------------------- | ------------------ | --------- | | value | Value of counter component | number | 0 | | minValue | Minimum value of counter component | number | -999 | | maxValue | Maximum value of counter component | number | 999 | | disabled | Whether the counter component is disabled | boolean | false | | onChange | onChange event hanlder | (e: Event) => void | undefined | | onFocus | onFocus event hanlder | (e: Event) => void | undefined | | onInput | onInput event hanlder | (e: Event) => void | undefined | | onBlur | onBlur event hanlder | (e: Event) => void | undefined |