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

Label 'Add to My Calendar' should be a prop #431

Open
marrkeri opened this issue Dec 12, 2020 · 2 comments
Open

Label 'Add to My Calendar' should be a prop #431

marrkeri opened this issue Dec 12, 2020 · 2 comments

Comments

@marrkeri
Copy link

There really should be prop label to customize button.
Same with iconVisible.

My workaround is now:
`
.chq-atc--button {
font-size: 0;
}

.chq-atc--button svg {
display: none;
}

.chq-atc--button::before {
content: "Add to calendar";
text-decoration: underline;
font-size: 22px;
color: #fff;
}
`

@stonehz
Copy link

stonehz commented Jan 28, 2021

@marrkeri You should be able to override the label with anything you want since the components allows you to pass children

<AddToCalendar
      event={{
        name: "Happy Hour",
        details: "Let's go after work",
        location: "Boston, MA",
        startsAt: "2018-12-06T17:00:00-05:00",
        endsAt: "2018-12-06T18:00:00-05:00"
      }}>
Click me
</AddToCalendar>

@Avasam
Copy link

Avasam commented Jul 2, 2021

@marrkeri
Passing it as children make much more sense. Since that's how you use buttons in the first place. Also how Material-UI implements similar components

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

No branches or pull requests

3 participants