candidate

Input copy

Use this component when you want a user to be able to copy content easily.



<label for="input-copy" class="govuk-label">Open data communities url</label>
<input class="govuk-input copy-and-paste"
    name="input-copy" type="text"
    value="http://opendatacommunities.org/id/metropolitan-district-council/leeds" readonly=""
    data-module="input-copy">
{%- from "design-system/components/input-copy/macro.html" import dlInputCopy %}
{{ dlInputCopy({
    "label": "Open data communities url",
    "value": "http://opendatacommunities.org/id/metropolitan-district-council/leeds"
}) }}