Skip to content

0.2.34

Compare
Choose a tag to compare
@SukkaW SukkaW released this 05 Jun 11:44
· 53 commits to master since this release

Core Changes

  • Add useMediaQuery

  • useCompositionInput now supports <textarea />

    export const Example2 = () => {
      const textareaProps = useCompositionInput<HTMLTextAreaElement>(useCallback((value: string) => {
        // Do something with the value
      }, []));
    
      return (
        <textarea
          {...textareaProps}
          // useCompositionInput is uncontrolled, so you might need to provide defaultValue
          defaultValue={defaultValue}
        />
      );
    }