swisspost / design-system

The Swiss Post Design System - for a consistent and accessible user experience across the web platform.
https://design-system.post.ch
Apache License 2.0
125 stars 14 forks source link

[component]: Input/Textarea word counter #4049

Open leagrdv opened 9 hours ago

leagrdv commented 9 hours ago

Description

On Figma, there is a word counter on the textarea. This could be useful on the input field as well so it would make sense to make it its own component (like the form hint one)

Design

https://www.figma.com/design/JIT5AdGYqv6bDRpfBPV8XR/Foundations-%26-Components-Next-Level?node-id=21-182&node-type=canvas&t=ZropgmGUoV26eu82-0

Tokens

Tasks design

No response

Tasks development

No response