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

Button slot #388

Merged
merged 1 commit into from
Jul 18, 2020
Merged

Button slot #388

merged 1 commit into from
Jul 18, 2020

Conversation

lochstar
Copy link
Contributor

I've added a default <slot> inside Button, this enables us to pass in custom components. For example, if we'd like to use font-awesome icons instead of the built in primeicons:

<Button>
  <font-awesome icon="check" />
</Button>

Let me know if you'd like an example added to the documentation.

@cagataycivici cagataycivici added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Jul 18, 2020
@cagataycivici cagataycivici added this to the 2.0.3 milestone Jul 18, 2020
@cagataycivici cagataycivici merged commit de622bd into primefaces:master Jul 18, 2020
@cagataycivici
Copy link
Member

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants