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

feat: add basic classNameInput #207

Merged
merged 2 commits into from
Sep 9, 2024
Merged

feat: add basic classNameInput #207

merged 2 commits into from
Sep 9, 2024

Conversation

wwsun
Copy link
Contributor

@wwsun wwsun commented Sep 8, 2024

使用 cursor 创建的组件,对话历史如下:

  1. 实现一个 className 输入框,用户输入的内容会作为一个 className,默认按照空格进行分隔
  2. 优化每一个分隔的 className 的样式展示,使用红色的 badge 进行展示
  3. 将两个区域合并为 1个区域,也就是在 input 内部展示 ClassList
  4. 允许通过回退键删除已有的 className
  5. 禁止输入非法的 className 字符
  6. 支持 tailwindcss 的 className 的输入补全提示
  7. 支持下拉选择列表项

@wwsun wwsun merged commit 55602fc into main Sep 9, 2024
1 check passed
@wwsun wwsun deleted the feat/classNameInput branch September 9, 2024 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant