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

Add Label text number of lines of the button #4557

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

aravind3566
Copy link

Introduce a new property to control the maximum number of lines displayed in the label text of buttons. This enhancement will improve text handling by allowing developers to set constraints on the label's line count, ensuring better UI adaptability and readability.

Key Features:

  • Add a numberOfLines property to the button's label.
  • Automatically truncate text with ellipsis if it exceeds the specified number of lines.
  • Provide full control to developers for defining single-line or multi-line behavior.
  • Ensure compatibility with existing button styles and layout constraints.

@callstack-bot
Copy link

callstack-bot commented Nov 19, 2024

Hey @aravind3566, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

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.

2 participants