Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.21 KB

File metadata and controls

38 lines (28 loc) · 1.21 KB

govukwc-character-count

Usage

import 'govukwc-webcomponents/components/govukwc-character-count/govukwc-character-count';

API

<govukwc-character-count>

Attributes

Property Type Default Description
maxwords number "" Maximum word count (if applicable)
value string "" Field value
maxlength number 500 Maximum field length
rows number 5 Field rows
id string "" Field id
name string "" Field name
label string "" Label text
hint string "" Hint text
error string "" Error text
pageHeadingLabel boolean false Determines if the label should be treated as a page level h1
invalid boolean false Flag to define if field is in an invalid (error) state

Events

Name Detail Description
govukwc:change - Fires when on field 'change' event
govukwc:keyup - Fires when on field 'keyup' event