Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
Basic input html element wrapper with disabled/error states, styling, and input adornments.
Use the value
and onValue
props to control the input.
The `disableChange` prop can be used to prevent the input value from updating. Try updating the value from the input below.
Use the error
prop to add error styling.
Use the disabled
prop to disable the input. This prevents the user interacting with the input and adds disabled styling.
Note the disabled styling added to the prefix and suffix
Use the unstyled
prop to remove any default styling.
Use the prefix
and suffix
props to adorn the input.
Name | Description | Default |
---|---|---|
error | ReactNode | - |
containerRef | Ref<HTMLDivElement> | - |
disabled | boolean | - |
prefix | ReactNode | - |
suffix | ReactNode | - |
unstyled | boolean | - |
onValue | ((value: string) => void) | - |
disableChange | boolean | - |
containerProps | (Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & { ref?: ((instance: HTMLDivElement | null) => void) | ... 2 more ...; }) | - |
inputContainerClassName | string | - |
inputClassName | string | - |
prefixClassName | string | - |