Skip to content

Import

import { Value } from '@dnb/eufemia/extensions/forms'
render(<Value.Provider />)

Description

The Value.Provider lets you pass generic properties to all nested Value.* components.

import { Field, Value } from '@dnb/eufemia/extensions/forms'
render(
<>
<Field.Boolean path="/myPath" label="My label" />
<Value.Provider inheritLabel>
<Value.Boolean path="/myPath" />
</Value.Provider>
</>,
)

Relevant links