Skip to content

Import#

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

Description#

Field.Option is a pseudo-component that is used by parent components to configure options. It has no use on its own. How it renders, and what extra props it accepts, are defined by the parent.

Used in:#

Relevant links#

import { Field } from '@dnb/eufemia/extensions/forms'
render(
<Field.Selection>
<Field.Option value="foo" title="Foo!" />
<Field.Option value="bar" title="Baar!" />
</Field.Selection>
)
Suggest an edit