Skip to content

Field

Wrapper for form content
import { Field } from 'degen'
name
type
default
description
ReactNode
-
error
ReactNode
-
hideLabel
boolean
-
id
string
-
label*
Required
ReactNode
-
labelSecondary
ReactNode
-
required
boolean
-
width
ConditionalStyle<Values<{ '448px': string; '512px': string; '576px': string; '672px': string; '720px': string; '768px': string; '896px': string; '976px': string; '1024px': string; '1152px': string; '1280px': string; '1/4': string; '1/3': string; '1/2': string; ... 52 more ...; none: CSSVarFunction; }, { ...; }>>
full

The content wrapped by field sets an id automatically for accessibility. You can customize the behavior by using the render prop.