function VisibilityToggle
VisibilityToggle<T extends FieldValues>(unnamed 0: VisibilityToggleProps<T>): React.JSX.Element

Renders a Public/Private toggle on a boolean field that is true for public. A dump's API takes isPrivate instead, so the dump forms bind the toggle to an isPublic field and invert it on submit.

Type Parameters

T extends FieldValues

Parameters

Return Type

React.JSX.Element

Usage

import { VisibilityToggle } from "src/components/form/SegmentedField.tsx";