Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

emblor

> 前端框架
Open source

A fully-featured tag input component built with shadcn/ui

1.2K stars0 likes1 views
WebsiteGitHub

About

A fully-featured tag input component built with shadcn/ui

Emblor

Emblor v2 is a headless tag-input primitive. It owns tag and draft state, keyboard behavior, validation, focus coordination, native forms, and accessible announcements. Consumers own markup and styling.

typescript
import {
  EmblorClear,
  EmblorInput,
  EmblorLabel,
  EmblorRoot,
  EmblorTag,
  EmblorTagList,
  EmblorTagRemove,
  EmblorTagText,
} from 'emblor';

  Skills
  
    {(tag, index) => (
      
        
        
      
    )}
  
  
  Clear
;

Import all supported parts from the package root. The compound API requires exactly one EmblorInput; EmblorTagList is optional. Use value/onValueChange or defaultValue for string[] tags. Draft control, when needed, lives on Root through inputValue, defaultInputValue, and onInputValueChange.

Enter commits, literal delimiters default to [','], addOnTab opts into Tab commits, addOnPaste defaults to true, and blurBehavior defaults to 'noop'. transform runs before length, duplicate, capacity, and boolean validate checks. onReject receives structured rejection details; pasted values are evaluated left-to-right and accepted in one batch transition.

With name, committed tags submit as ordered repeated native form values. required means at least one committed tag. Labels associate automatically, actions remain accessible under as polymorphism, and every part forwards applicable DOM/ARIA/data/style/event props. Consumers own React keys and optional tag IDs. The example uses the value as its key because duplicates are disabled; consumers enabling duplicates should maintain stable occurrence IDs alongside their string[].

The package intentionally excludes autocomplete, cmdk, popovers, sorting, drag-and-drop, Tailwind, CVA, and styling runtimes. See packages/emblor/README.md for the full contract and packages/emblor/MIGRATION.md for v1 migration.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptautocompleteinputpopoverradix

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架