Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Migration: Headless Input Component #4

Closed
9 tasks done
Tracked by #2
lilingxi01 opened this issue May 21, 2022 · 1 comment
Closed
9 tasks done
Tracked by #2

✨ Migration: Headless Input Component #4

lilingxi01 opened this issue May 21, 2022 · 1 comment

Comments

@lilingxi01
Copy link
Owner

lilingxi01 commented May 21, 2022

Overview

Migrating the input component from Indigo to Ams; convert all MUI dependencies into raw HTML element; and add needed APIs for headless input while using it independently. This view should be usable directly and independently and should have no style (no any visual part, including default outline) at all.

Features

The headless input component should have following features:

  • Totally style-less.
  • Callback onChange when the input is finalized.
  • Input finalization detection.
    • When user hits enter.
    • When user blurs the input and the input is already in date format.
  • Callback onError when there is an error.
  • Throw no error at all (except wrong type, e.g. pass a string to the onChange).
  • Support wild props properly (pass in and avoid conflict).
  • Detect when should the selector be opened or be closed.
@lilingxi01 lilingxi01 self-assigned this May 21, 2022
@lilingxi01 lilingxi01 changed the title ✨ Migrate Headless Input Component ✨ Migration: Headless Input Component May 21, 2022
@lilingxi01 lilingxi01 added this to the 0.0.1 - Liftoff! milestone Jun 4, 2022
@lilingxi01
Copy link
Owner Author

Finished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant