New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@pulsor/form

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pulsor/form

Stateful form handling primitives for pulsor

latest
npmnpm
Version
0.0.2-rc.2
Version published
Maintainers
1
Created
Source

@puslor/form

State-bound form handling primitives for pulsor

Installation

npm install @pulsor/form

Usage

import { Form, Input, Textarea, Checkbox, Radio, Select } from '@pulsor/form'

const SubmitSignupForm = (state) => ({
  run: async (emit) => {
    const formData = state.signup;
    // ...
  }
})

const form = (
  <Form name="signup" onsubmit={SubmitSignupForm}>

    <Input name="name" />

    <Textarea name="description" />
    
    <Checkbox name="remember_me" type="checkbox"  />

    <Radio type="radio" name="favorite_color" value="Red" />
    <Radio type="radio" name="favorite_color" value="Blue" defaultChecked />
    <Radio type="radio" name="favorite_color" value="Green" />

    <Select
      name="favorite_pet"
      defaultValue="dog"
      options={[
        { label: '--Please choose an option--' },
        { value: 'dog', label: 'Dog', },
        { value: 'cat', label: 'Cat', },
        { value: 'hamster', label: 'Hamster', },
        { value: 'parrot', label: 'Parrot', },
        { value: 'goldfish', label: 'Goldfish', },
      ]}
    />

    <button type="submit">Submit</button>

  </Form>
)

FAQs

Package last updated on 18 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts