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

Modify components to extend tag's default props #253

Open
3 tasks
tom-leamon opened this issue Feb 21, 2024 · 0 comments
Open
3 tasks

Modify components to extend tag's default props #253

tom-leamon opened this issue Feb 21, 2024 · 0 comments
Labels
developer experience Improves the usability of the library

Comments

@tom-leamon
Copy link
Contributor

We need to modify certain components in our project to extend their tag's default props. Extending the default props of elements like div, TextInput, etc., allows us to enhance component functionality and maintainability by providing a more flexible interface for setting default properties. This approach can help reduce boilerplate code, ensure consistency across the application, and make it easier to apply global changes to these components.

Components to be modified:

  • TextInput
  • Button
  • AspectRatio

Extending default props will also aid in improving the developer experience by allowing for the use of custom properties directly on the component without needing to wrap or redefine common properties. It's a crucial step towards creating a more efficient and scalable codebase.

@tom-leamon tom-leamon added the developer experience Improves the usability of the library label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience Improves the usability of the library
Projects
None yet
Development

No branches or pull requests

1 participant