
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
@gravity-ui/dialog-fields
Advanced tools
The library helps to create dialogs with forms by using registered field-types. Also it is possible to extend it with your own field-types.
The purpose of DFDialog component is to ease of creating of forms, it is used react-final-form internally.
It supports several predefined types of fields but user can extend it by registering new ones by using registerDialogControl.
plain - static texttext - editable textmulti-text - user defined array of stringcheckbox - checkboxtumbler - tumblerradio - radio buttoneditable-list - list of removable stringsmulti-editable-list - multi list of removable stringstext area - text areaselect - selectblock - allows to add ReactNode$ npm install @gravity-ui/dialog-fields
Also you have to install all required peer-dependencies
$ npm install -D @gravity-ui/uikit@^5 @bem-react/classname@1.6 react@^17
import {DFDialog, FormApi} from '@gravity-ui/dialog-fields';
interface FormValues {
firstName: string;
lastName: string;
}
function MyForm() {
return (
<DFDialog<FormValues>
visible={true}
headerProps={{
title: 'My form',
}}
onAdd={(form) => {
console.log(form.getState().values);
return Promise.resolve();
}}
fields={[
{
name: 'firstName',
type: 'text',
caption: 'First name',
tooltip: 'Description for first name field',
},
{
name: 'lastName',
type: 'text',
caption: 'LastName',
tooltip: 'Description for last name field',
},
]}
/>
);
}
See more examples in storybook.
FAQs
The library helps to create dialogs with forms by using registered field-types. Also it is possible to extend it with your own field-types.
The npm package @gravity-ui/dialog-fields receives a total of 288 weekly downloads. As such, @gravity-ui/dialog-fields popularity was classified as not popular.
We found that @gravity-ui/dialog-fields demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
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.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.