-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed as not planned
Labels
scope: buttonChanges related to the button.Changes related to the button.
Description
The current Button documentation provides basic usage, but some common scenarios are missing or unclear. For example, developers may not easily find examples of using different variants, sizes, or combining buttons with icons. This can make it harder for new users to understand the full flexibility of the Button component.
Why it matters:
Clear and comprehensive documentation helps developers quickly implement UI components without confusion. Adding more examples will reduce repetitive questions, improve onboarding, and make the docs more user‑friendly.
Steps / Examples
- No example showing how to use variant="outlined" vs variant="contained".
- Limited examples of size="small", size="large".
- No clear example of combining a Button with an icon (e.g., startIcon or endIcon).
Proposed Solution:
Add missing code examples to the Button documentation that demonstrate:
- Different variants (contained, outlined, text).
- Different sizes (small, medium, large).
- Usage with icons (startIcon, endIcon).
- A short section on accessibility best practices for buttons.
Search keywords:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
scope: buttonChanges related to the button.Changes related to the button.