Go Main page
Go Main page

Web components

cover

components

Input Counter

v.1.0.0 | Saturn

Field that allows counting the characters entered by the user, having a maximum limit.

import { InputCounter } from '@kubit-ui-web/react-components'
1
<InputCounter variant="DEFAULT" maxLength="5" screenReaderTextCount="Screen reader text" />

The inputCounter component inherits its properties of the input component. For more information visit the Input documentation.

Variant

In Kubit Design System, users have the freedom to generate variants for each component according to their needs. While predefined variants are provided as examples, they can be modified or new ones can be added to align with the specific requirements of each project.

We have set this predefine style for its quick use, access them through the variant prop:

1
<InputCounter variant="DEFAULT" maxLength="5" screenReaderTextCount="Screen reader text" />