avatar
UI
Components
Changelog
LobeHub UI
Antd Components
Lucide Icons
CSSinJS
Ctrl
K
Chat
ChatInputArea
ChatItem
EditableMessage
Data Display
Card
ChatMarkdown
CollapseGroup
Descriptions
Highlighter
JsonViewer
LogViewer
ProCard
RichTextEditor
Status
Table
Tree
Data Entry
CodeEditor
Form
Mentions
MonacoEditor
SelectCard
SliderInput
Feedback
Alert
DragPanel
Drawer
Modal
Notification
General
Breadcrumb
Typography
WaveformIcon
Layout
Divider
Page
Navigation
ButtonGroup
Dropdown
Theme
ConfigProvider
Logo
TTS
useSpeechSynthes
Utils
FormHelper

FormHelper

Enhanced component for Form

import { FormHelper } from '@yuntijs/ui';
NPM
UNPKG
BundlePhobia
PackagePhobia
Anvaka Graph
Source
Edit
Previous
useSpeechSynthes

Resources

Lobe UI-AIGC Components
Lobe Icon-AI / LLM Icon Collection
Lobe Charts-Modern Charts
Lobe TTS-TTS / STT Library

Community

Report Bug
Request Feature

Help

GitHub
Changelog

More Products

🤯 Lobe Chat-AI / LLM Chat Framework
🧸 Lobe Vidol-Virtual Idols for EveryOne
🅰️ Lobe Theme-Stable Diffusion Extension
🌐 Lobe i18n-AI i18next CLI
Copyright © 2022-2026
Made with ☁️ by YuntiJS
LobeHub

FormHelper

Form enhancement component, currently supporting:

  • autoFocus: automatically selecting the first non-disabled and non-readonly input or textarea of the form when focused.

Usage

React component FormHelper

Wrap the Form component with FormHelper. Supported attributes include:

propsdescriptiondefaultrequired
autoFocusAutomatically select the focus state of the first non-disabled and non-readonly input or textarea in the form.truefalse
idThe id of the outer wrapping div.-false
classNameThe className of the outer wrapping div.-false
styleThe style of the outer wrapping div.-false

usage

withFormHelper - Higher-Order Component (HOC)

As a higher-order component, withFormHelper supports the same parameters as the React component FormHelper.

usage

useAutoFocus - hooks

Supports passing a ref, id, or DOM element as a parameter.

Example of a ref parameter:

Example of a id parameter:

Example of a dom parameter: