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: add label prop to ConnectButton #379

Merged
merged 3 commits into from May 16, 2022

Conversation

nicoglennon
Copy link
Contributor

Screen Shot 2022-05-13 at 1 33 25 PM

@nicoglennon nicoglennon requested a review from a team as a code owner May 13, 2022 17:37
@vercel
Copy link

vercel bot commented May 13, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
rainbowkit-example ✅ Ready (Inspect) Visit Preview May 16, 2022 at 5:21PM (UTC)
rainbowkit-site ✅ Ready (Inspect) Visit Preview May 16, 2022 at 5:21PM (UTC)

@@ -59,6 +66,16 @@ The `ConnectButton` component exposes several props to customize its appearance

### Examples

#### Label

By default your Connect Button will say "Connect Wallet".
Copy link
Contributor

Choose a reason for hiding this comment

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

in order to keep the doc copy as minimal as possible, I think we could remove this line since it's already documented in the props table above


By default your Connect Button will say "Connect Wallet".

For a custom label, pass your string to the `label` prop.
Copy link
Contributor

Choose a reason for hiding this comment

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

could we use an assertive tone, for consistency with the rest of the docs?

something along the lines of: Use the label prop to set a custom ConnectButton text.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for sure, sorry i know nothing about this kind of stuff

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.

None yet

3 participants