Skip to content
Discussion options

You must be logged in to vote

Hi @arpitbatra123! Our Disclosure component (similar to most of our components) has few modifiable styles. We build our components that way to increase visual cohesion across the Twilio product suite. The package's Disclosure Content has a set padding.

Because our styles don't always fit every single use case, we also offer primitives for common components, which are accessible and functional basic components without any styling. I think your best bet to achieve your desired disclosure behavior would be to build on top of our Disclosure Primitive. (Feel free to check out how we've built the sidebar navigation disclosure components for our own documentation site.)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@arpitbatra123
Comment options

Answer selected by arpitbatra123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants