Skip to main content
PROYECTOVIVIANA

Form

The props declared for Form, generated from the types @proyecto-viviana/ui ships.

Import

import { Form } from "@proyecto-viviana/ui";

Props

Props for Form in @proyecto-viviana/ui
PropTypeDefaultDescription
stylesStyleString—Spectrum-defined generated classes.
UNSAFE_classNamestring | UnsafeClassName—Additional CSS class name. Use only as a last resort.
UNSAFE_styleJSX.CSSProperties—Additional inline styles. Use only as a last resort.
ref((el: HTMLFormElement) => void) | { current?: HTMLFormElement | null | undefined; }—Not yet documented
childrennumber | boolean | RenderedElement | ArrayElement | (string & {}) | Node | JSX.ArrayElement | ((renderProps: FormRenderProps) => JSX.Element)—The children of the component. solidaria-components
validationBehavior'aria' | 'native'—Validation behavior mode. solidaria-components
autoCompletefalse | 'on' | 'off'—Browser autocomplete behavior. React-style alias for Solid's `autocomplete`. solidaria-components
validationErrorsValidationErrors—Server-side validation errors keyed by field name. solidaria-components
acceptCharsetstring—Character encodings accepted by the server. React-style alias for Solid's `accept-charset`. solidaria-components
autoCapitalizefalse | 'none' | 'on' | 'off' | 'sentences' | 'words' | 'characters'—Browser auto-capitalization hint. React-style alias for Solid's `autocapitalize`. solidaria-components
encTypefalse | 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain'—Form encoding type. React-style alias for Solid's `enctype`. solidaria-components
size'S' | 'M' | 'L' | 'XL''M'The size of descendant Form elements.
labelPosition'top' | 'side''top'The label's overall position relative to each field.
labelAlign'start' | 'end''start'The label's horizontal alignment relative to each field.
necessityIndicator'label' | 'icon''icon'Whether required fields show an icon or text label.
isRequiredfalse | true—Whether descendant Form elements are required.
isDisabledfalse | true—Whether descendant Form elements are disabled.
isEmphasizedfalse | true—Whether descendant Form elements are rendered with emphasized styling.

Declared in packages/viviana-ui/src/form/index.tsx.

FormStyle props

Props for FormStyle in @proyecto-viviana/ui
PropTypeDefaultDescription
size'S' | 'M' | 'L' | 'XL''M'The size of descendant Form elements.
labelPosition'top' | 'side''top'The label's overall position relative to each field.
labelAlign'start' | 'end''start'The label's horizontal alignment relative to each field.
necessityIndicator'label' | 'icon''icon'Whether required fields show an icon or text label.
isRequiredfalse | true—Whether descendant Form elements are required.
isDisabledfalse | true—Whether descendant Form elements are disabled.
isEmphasizedfalse | true—Whether descendant Form elements are rendered with emphasized styling.

Declared in packages/viviana-ui/src/form/index.tsx.

Props marked solidaria or solidaria-components come from the headless layer underneath and behave the same in both registers. Components that wrap a DOM element also accept that element's standard attributes, which are left out here on purpose — listing them would bury the props that are actually ours.