Components
FieldCharCounter
API Reference

API Reference

Count chars of a field that contains a input or textarea that has a max-length

Parameters

props

  • Type: @vtex/shoreline-components.FieldCharCounterProps & @types/react.React.RefAttributes<typescript.HTMLDivElement>

Props

count

Current count

  • Type: number

limit

Max count

  • Type: number

View source (opens in a new tab)