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

PassThrough: component option improvements #4322

Closed
tugcekucukoglu opened this issue Aug 22, 2023 · 0 comments
Closed

PassThrough: component option improvements #4322

tugcekucukoglu opened this issue Aug 22, 2023 · 0 comments
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@tugcekucukoglu
Copy link
Member

tugcekucukoglu commented Aug 22, 2023

Users can render conditional by using the pt properties of the component with options.

Exp;

const CustomPT = {
    button: ({ instance, props, states, context }) => {
       return props.size === 'small' ? { root: 'my-small-button' } : { root: 'my-button' }
    }
    ...
}
@tugcekucukoglu tugcekucukoglu added this to the 3.32.2 milestone Aug 22, 2023
@tugcekucukoglu tugcekucukoglu added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Aug 22, 2023
@tugcekucukoglu tugcekucukoglu self-assigned this Aug 22, 2023
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

No branches or pull requests

1 participant