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

@aiui/ai-form

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aiui/ai-form

Minimal Form & Input React Components.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

AiForm

Minimal Form & Input React Components.

Provides Form, Input, Radio, Checkbox and Select component

npm bundle size npm bundle size npm download

Install

npm i @aiui/ai-form

Import

import AiForm, { AiInput, AiSelect, AiCheckbox, AiRadio } from '@aiui/ai-form';

AiForm Props

NameTypeDefaultDescription
onDonefunc( ) => { }Callback fired when Form gets validated and submitted (returns form current Ref)
childrennodeForm children (input,radio,select,checkbox)

AiInput Props

NameTypeDefaultDescription
namestringInput field name
typestringtextInput field type
labelstringInput field label
showLabelbooltrueIf false, field label is hidden
withGroupbooltrueIf false, field margin is removed

AiSelect Props

NameTypeDefaultDescription
namestringSelect field name
optionsarray[ ]Select field options ( [{ label, value }, { label, value }] )
labelstringSelect field label
showLabelbooltrueIf false, field label is hidden
withGroupbooltrueIf false, field margin is removed

AiCheckbox Props

NameTypeDefaultDescription
namestringCheckbox field name
optionsarray[ ]Checkbox field options ( [{ label, value }, { label, value }] )
labelstringCheckbox field label
showLabelbooltrueIf false, field label is hidden
withGroupbooltrueIf false, field margin is removed
selectedValuesarray[ ]Default Checked Options
inlinebooltrueIf true, Checkbox options shown inline

AiRadio Props

NameTypeDefaultDescription
namestringRadio field name
optionsarray[ ]Radio field options ( [{ label, value }, { label, value }] )
labelstringRadio field label
showLabelbooltrueIf false, field label is hidden
withGroupbooltrueIf false, field margin is removed
selectedValueanyDefault Checked Option
inlinebooltrueIf true, Radio options shown inline

Keywords

react

FAQs

Package last updated on 16 Jun 2021

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