We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<Can> with that option always renders own children. It may be useful for cases when you want disable buttons and not hide them completely
<Can>
<Can I="read" a="Post" passThrough> (can) => <button disabled={!can}>My button</button> </Can>
The similar functionality can be implemetned for Vue <can> component by using scoped slot
<can>
The text was updated successfully, but these errors were encountered:
feat(react:can): adds passThrough option
045318c
Relates to #105
Published in @casl/[email protected]
@casl/[email protected]
Sorry, something went wrong.
28ca883
No branches or pull requests
<Can>
with that option always renders own children. It may be useful for cases when you want disable buttons and not hide them completelyThe similar functionality can be implemetned for Vue
<can>
component by using scoped slotThe text was updated successfully, but these errors were encountered: