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

feat(button): adds text container props to enable styling Text/string #42

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

Conversation

ericbaumann
Copy link
Contributor

allows user to provide a text container subcomponent for the Button component

@github-actions
Copy link

App is ready for review, you can see it here.

Expo QR

iconPrefix?: string | JSX.Element;
iconSuffix?: string | JSX.Element;
isLoading?: boolean;
isProcessing?: boolean;
children?: string;
children?: ReactNode[];
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this needs to be an array of ReactNodes - but I could be wrong.

Copy link
Contributor

Choose a reason for hiding this comment

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

Or is this the only way we can do the textcontainer stuff?

@aVileBroker aVileBroker marked this pull request as draft August 26, 2021 16:21
@aVileBroker
Copy link
Contributor

Made this PR a draft for now while we discuss potentially updating the architectural design to use a HOC to wrap each component and pre-process the children

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