1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-03 09:03:32 +00:00
Files
browser/libs/vault/src/cipher-form/cipher-form.mdx
2025-03-28 13:41:53 -04:00

21 lines
732 B
Plaintext

import { Controls, Meta, Primary } from "@storybook/addon-docs";
import * as stories from "./cipher-form.stories";
<Meta of={stories} />
# Cipher Form
The cipher form is a re-usable form component that can be used to create, update, and clone ciphers.
It is configured via a `CipherFormConfig` object that is passed to the component as a prop. The
`CipherFormConfig` object can be created manually, or a `CipherFormConfigService` can be used to
create it. A default implementation of the `CipherFormConfigService` exists in the
`@bitwarden/vault` library.
The cipher form has a slot for `attachment-button`, which should be included when the form is in
`edit` mode.
<Primary />
<Controls include={["config", "submitBtn"]} />