Socket
Socket
Sign inDemoInstall

@deckstar/final-form-focus

Package Overview
Dependencies
1
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @deckstar/final-form-focus

Decorator that will attempt to apply focus to the first field with an error upon an attempted form submission in 🏁 Final Form. Made with TypeScript.


Version published
Weekly downloads
8
decreased by-50%
Maintainers
1
Install size
25.3 kB
Created
Weekly downloads
 

Readme

Source

final-form-ts

Introduction

Final Form TS is a subscription-based state-management library for building forms in JavaScript.

Acknowledgements

Final Form TS is a fork of Erik Rasmussen's Final Form, rewritten in TypeScript.

Quick install

Pick the form package that you want and install it with the "@deckstar" prefix. For example:

yarn add @deckstar/final-form-focus

The package is mostly compatible with the original final-form packages.

import { getFormInputs } from "@deckstar/final-form-focus"; // almost identical to the original final-form-focus

Package alias

If you wish to import packages with their original names (e.g. "final-form-focus" rather than "@deckstar/final-form-focus"), you must install the packages with an alias. Make sure to include the version! For example:

yarn add final-form@npm:@deckstar/final-form-focus@^1.0.0

This alias would allow you to import things with the same package name as the original package. This can be useful if you don't wish to rewrite imports throughout a project.

// import { getFormInputs } from "@deckstar/final-form-focus"; // won't work anymore
import { getFormInputs } from "final-form-focus"; // works after adding the alias!

Keywords

FAQs

Last updated on 25 Mar 2024

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc