Skip to content

@components-kit/react v1.0.0

Choose a tag to compare

@Poafs1 Poafs1 released this 19 Feb 07:03
· 50 commits to main since this release
967c36c

Added

  • 7 new headless, accessible React components:
    • Combobox - Autocomplete dropdown with async item loading (requires downshift)
    • MultiSelect - Multi-value selection with token display (requires downshift)
    • Pagination - Page navigation with first/previous/next/last buttons
    • Progress - Determinate and indeterminate progress bar
    • Slider - Range input with draggable thumb and orientation variants
    • Tabs - Tabbed content panels with keyboard navigation
    • Toast - Notification toasts via Sonner integration (requires sonner)
  • Type-safe variantName via register pattern (ComponentsKitVariants, VariantFor<T>)
  • useExitTransition hook for CSS exit animations
  • Exported hooks: useDebouncedCallback, useExitTransition, useFloating, useFloatingSelect
  • Select, Combobox, MultiSelect: form integration, clearable, readOnly, error, openOnFocus, placement, maxDropdownHeight
  • MultiSelect: fixedValues, tokenSeparators, maxDisplayedTags
  • Icon size prop (sm, md, lg)
  • Select icon slot and placement prop
  • Table footer row support
  • New optional peer dependencies: @floating-ui/react, sonner

Changed

  • Icon restructured — no longer polymorphic, always renders <span>
  • Alert icon now applied via CSS variant instead of icon prop
  • Table built-in pagination removed in favor of standalone Pagination component
  • Select API refactored for consistency with Combobox and MultiSelect
  • Slider DOM restructured to sibling pattern for accessibility

Removed

  • AsyncSelect — functionality merged into Combobox
  • Polymorphic as prop removed from Button and Icon

Fixed

  • Component audit: accessibility, data-* attributes, and memory leak fixes
  • Slider thumb drag behavior, added orientation and onValueCommit
  • Button asChild no longer loses nested icon children

npm: @components-kit/react@1.0.0
Full Changelog: v0.1.1...v1.0.0