Skip to content

Commit

Permalink
feat(ui): add markdown text
Browse files Browse the repository at this point in the history
  • Loading branch information
Luchanso authored and Heymdall committed Sep 25, 2020
1 parent c2253c8 commit f78d9ec
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/input/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,23 @@ initialState = {
</div>
```

Для корректной работы форм, например, Formik или react-hook-forms, используется inputRef свойство:
```txt
export default function App() {
const ref = useRef();
useEffect(() => {
setTimeout(() => {
ref.current.value = "Tada!!!";
}, 3000);
});
return (
<Input name="firstname" inputRef={ref} />
);
}
```

С произвольной иконкой
```jsx
import IconOk from 'arui-feather/icon/ui/ok';
Expand Down

0 comments on commit f78d9ec

Please sign in to comment.