Is there a way to customise the Disclosure component? #2932
-
Below is a screenshot of a design that I'm trying to create using Paste. I need to separate the Tasks list into separate sections and I think the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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.) |
Beta Was this translation helpful? Give feedback.
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.)