2.8.0 • Published 1 month ago

@lskjs/form-control-input v2.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

LSK.js – form-control-input

@lskjs/form-control-input – Input control for Form

LSK logo NPM version NPM downloads NPM Dependency count Have TypeScript types Have tree shaking NPM Package size Package size Ask us in Telegram


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

  1. Fork it (https://github.com/yourname/yourproject/fork)
  2. Create your feature branch (git checkout -b features/fooBar)
  3. Commit your changes (git commit -am 'feat(image): Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. 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