mi6 / mi6/ic-ui-kit

Support different data types in input fields

Open
#330 6 comments 0 reactions 0 assignees View on GitHub
component: ic-text-field spike
Dominant language
TypeScript
Stars
53
Forks
63
Avg merge
2d 4h
Merged PRs (30d)
15

Description

## Summary
Currently the input fields are text only, whereas we should look at how to support different data types that are available as standard HTML input types.

## 💬 Description
Review the design of the input fields to make sure they can support the different HTML input types.

Consider:
- Email
- Date
- Date-time
- Currency
- Password
- Number
- Month
- Search
- Tel
- Time
- URL
- Week

Some of these input types will be covered by other ic components, so these can be excluded once confirmed.

## 💰 Use value
This provides browser default behaviour for inputting standard data types. Enriching our text field to allow these different data types will make it more flexible in future.

## Additional info
Html input types can be found here:
https://www.w3schools.com/html/html_form_input_types.asp

Contributor guide

Open the contributing guide

Research direction

No files or tests are named, so start by locating the existing input-field components and their entry points. Review the standard HTML input types listed in the issue, confirm which are covered by other components, and define the supported scope; done means the agreed types provide the expected browser behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.