FEAT: Add collapse and defaultCollapse props to MultiList and SingleList - #2339
Open
Talha12Shiekh wants to merge 1 commit into
Open
FEAT: Add collapse and defaultCollapse props to MultiList and SingleList#2339Talha12Shiekh wants to merge 1 commit into
Talha12Shiekh wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Adds built-in collapse/expand functionality to the inline list components (
MultiListandSingleList) to resolve the feature request:collapse(Boolean prop, default:false): When set totrue, enables collapsible panels for the filter. The title header is converted to an interactive toggle button with focus and keyboard support.defaultCollapse(Boolean prop, default:true): Determines the initial state of the collapsible filter whencollapseis enabled.Enter/Spacetoggles the visibility of the search input, list options, and load-more controls.▼/▲) next to the title to represent open/closed states.role="button",tabIndex={0}, and dynamicaria-expandedattributes.MultiList.d.tsandSingleList.d.tsdefinitions.Linked Issues
[Feature Request] collapse filters option in MultiList / SingleList)Usage Example:
Checklist
Improvements to the Library Experience
Side Effects
collapsedefaults tofalse).Testing
yarn build) without compilation or runtime syntax errors.