2.8.0 • Published 1 month ago
@lskjs/form-control-input v2.8.0
LSK.js – form-control-input
@lskjs/form-control-input – Input control for Form
Table of contents
⌨️ Install
# yarn
yarn i @lskjs/form-control-input prop-types react
# npm
npm i @lskjs/form-control-input prop-types react
Input example:
import React from 'react';
import { Form, Field } from 'formik';
import Story from '@lskjs/dev/Story';
import createForm from '../../createForm';
import FormSubmit from '../../FormSubmit';
import Input from './Input';
const InputFormView = props => (
<Form>
<Field {...props.control('input')} />
<FormSubmit {...props} />
</Form>
);
const InputForm = createForm({
view: InputFormView,
controls: {
input: {
title: 'Input',
component: Input,
required: true,
},
},
});
<Story>
<InputForm />
</Story>
📖 License
This project is licensed under the MIT License - see the LICENSE file for details
👥 Contributors
👏 Contributing
- Fork it (https://github.com/yourname/yourproject/fork)
- Create your feature branch (
git checkout -b features/fooBar
) - Commit your changes (
git commit -am 'feat(image): Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
📮 Any questions? Always welcome :)
2.8.0
1 month ago
2.7.5
2 months ago
2.7.0
2 years ago
2.6.3
2 years ago
2.5.3
3 years ago
2.5.2
3 years ago
2.5.1
3 years ago
2.4.0-beta.1
3 years ago
2.3.0-beta.19
3 years ago
2.3.0-beta.17
3 years ago
2.3.0-beta.12
3 years ago
2.3.0-beta.10
3 years ago
2.3.0-beta.7
3 years ago