-
Hi folks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @andipants12 The docs could be clearer for the primitive. Essentially you can pass the For example you can pass it a Button from Paste and it'll act like that button, whilst passing it's functional props via the hook. I've created a sandbox to demo it. |
Beta Was this translation helpful? Give feedback.
-
So I did a few things and you can look at this sandbox to see what I think works best. I think the button under the paragraph makes the most sense. I mulled over using the button as a link here but I think with the button (even secondary), it was too noisy. See you all next week 👋 |
Beta Was this translation helpful? Give feedback.
Hi @andipants12
The docs could be clearer for the primitive. Essentially you can pass the
DisclosurePrimitive
anas
prop, which can be any component really.For example you can pass it a Button from Paste and it'll act like that button, whilst passing it's functional props via the hook. I've created a sandbox to demo it.
https://codesandbox.io/s/disclosure-example-dbhki