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

[Collapsible] Add missing defaults to Collapsible* components #752

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sai6855
Copy link
Contributor

@sai6855 sai6855 commented Oct 22, 2024

Added missing default values of props for Collapsible* components.

Collapsible docs: https://deploy-preview-752--base-ui.netlify.app/components/react-collapsible/

@sai6855 sai6855 marked this pull request as draft October 22, 2024 07:44
@mui-bot
Copy link

mui-bot commented Oct 22, 2024

Netlify deploy preview

https://deploy-preview-752--base-ui.netlify.app/

Generated by 🚫 dangerJS against 3df4e29

@sai6855 sai6855 added enhancement This is not a bug, nor a new feature component: collapsible This is the name of the generic UI component, not the React module! and removed enhancement This is not a bug, nor a new feature labels Oct 22, 2024
@@ -22,11 +22,11 @@ const CollapsibleRoot = React.forwardRef(function CollapsibleRoot(
forwardedRef: React.ForwardedRef<HTMLDivElement>,
) {
const {
animated,
animated = true,
Copy link
Contributor Author

@sai6855 sai6855 Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added deafult props in component,to make it consistent with other components.

@sai6855 sai6855 marked this pull request as ready for review October 22, 2024 08:04
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Oct 29, 2024
@michaldudak
Copy link
Member

The default values are set in the hook. We can make it consistent and set everything on the component, though. In this case, I'd recommend making the hook parameters mandatory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: collapsible This is the name of the generic UI component, not the React module! PR: out-of-date The pull request has merge conflicts and can't be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants