Socket
Book a DemoInstallSign in
Socket

@ascendtis/react-a-form

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ascendtis/react-a-form

Ascendtis own's Instant validation AForm component.

0.0.36
latest
npmnpm
Version published
Maintainers
1
Created
Source

@ascendtis/react-a-form

Ascendtis own's Instant validation AForm component.

Mandatory Steps

  • Add './node_modules/@ascendtis/react-a-form/dist/esm/**/*.{js,ts}' to your tailwind.config.js file in content section

Example

sample form

import { AButton, AForm, AFormInput } from '@ascendtis/react-a-form'

<AForm
    onSubmit={(values) => console.log("Form Values:", values)}
    values={{
	    first_name: 'John',
	    last_name: 'Doe'
	}}
>
    <div className='grid grid-cols-2 gap-4'>
		<AFormInput  name={'first_name'} label={'First name'} type='text' placeholder='John' hint='You are too good!' validation={{required: true}} />
		<AFormInput  name={'last_name'} label={'Last name'} type='text' placeholder='Enter your last name' validation={{required:  true}} />
	</div>

	<div  className='grid grid-cols-2 gap-4'>
		<AFormInput  name={'email'} label={'Email'} type='email' placeholder='Email address'  validation={{required: true, email: true}} />
		<AFormInput  name={'password'} label={'Password'} type='password' placeholder='Password'  validation={{required: true}} />
	</div>

	<div  className='grid grid-cols-1'>
		<AFormInput  name={'newsletters'} label='Subscribe to our newsletters.'  type='checkbox'  />
	</div>

	<div className='mt-5'>
		<AButton  type='submit' style={{ width: '100%'}}>Submit</AButton>
	</div>
</AForm>

Available FormInputs

  • TextInput
  • Checkbox
  • Select
  • File Input (Drag and Drop)
  • Toggle Switch
  • Action Button
  • TextArea
  • Radio Button
  • Input Group (Repeatable)

Validations

  • Required
  • Email
  • Number
  • MinValue
  • MaxValue
  • MinLength
  • MaxLength
  • MimeType
  • Url

Keywords

react

FAQs

Package last updated on 20 Aug 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.