Skip to content

feat: add disabled prop to FilterDropdown#101

Merged
tmccoy14 merged 1 commit into
mainfrom
feat/filter-dropdown-disabled-prop
Jun 26, 2026
Merged

feat: add disabled prop to FilterDropdown#101
tmccoy14 merged 1 commit into
mainfrom
feat/filter-dropdown-disabled-prop

Conversation

@tmccoy14

Copy link
Copy Markdown
Contributor

Summary

Adds an optional disabled prop to the FilterDropdown component. When true, the trigger button is unclickable and the dropdown cannot be opened. Defaults to false, so existing usage is unaffected.

Changes

  • packages/ui — Added disabled?: boolean to FilterDropdownProps (defaults to false) and wired it to the trigger Button. A disabled button prevents the Radix DropdownMenuTrigger from opening the menu and picks up the Button's built-in disabled styling.
  • packages/demo — Documented the new disabled prop in the Filter Dropdown props table.

Usage

<FilterDropdown
  label="Scope"
  options={options}
  selectedFilters={selectedFilters}
  onToggleFilter={onToggleFilter}
  onClearAll={onClearAll}
  disabled
/>
Screenshot 2026-06-26 at 10 47 14 AM

@tmccoy14 tmccoy14 requested a review from Shrinks99 June 26, 2026 14:48
@tmccoy14 tmccoy14 self-assigned this Jun 26, 2026
@tmccoy14 tmccoy14 merged commit de326d0 into main Jun 26, 2026
1 check passed
@tmccoy14 tmccoy14 deleted the feat/filter-dropdown-disabled-prop branch June 26, 2026 15:04
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