govuk-prototype-kit icon indicating copy to clipboard operation
govuk-prototype-kit copied to clipboard

Use the new `value` feature in Frontend

Open joelanman opened this issue 2 years ago • 1 comments

Context

GOV.UK Frontend has a new feature to set values in components. We should update the kit/docs (the checked function is covered in the tutorial)

Alternatives

Currently the kit has a function called checked that achieves the same thing. Maybe we can retire it in favour of values

joelanman avatar Jul 05 '22 13:07 joelanman

Related proof of concept I put together previously – https://github.com/alphagov/govuk-prototype-kit/pull/1316

I think all form components except date input could be extended in the same way to pre-populate values from the data object.

36degrees avatar Jul 05 '22 14:07 36degrees