-
How to handle the onClick of the quikAccessItem by my myself ? The documentation doesn't explain how we can do this or even is it possible ?
IDE error :
And when i build my app, any error thrown... i don't understant |
Beta Was this translation helpful? Give feedback.
Answered by
garronej
Oct 21, 2024
Replies: 2 comments 2 replies
-
Hello, you just need to use buttonProps instead of linkProps : {
iconId: "fr-icon-logout-box-r-fill",
buttonProps: {
onClick: () => keycloak.logout(),
},
text: "Logout",
}, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @zelytra, There is a detailed example in the storybook of how to handle precisely you usecase: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
zelytra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @zelytra,
There is a detailed example in the storybook of how to handle precisely you usecase:
https://components.react-dsfr.codegouv.studio/?path=/docs/components-header--simple-header#header-with-quick-access-items