Skip to content

Sidemodal #2801

Answered by SiTaggart
jhanley87 asked this question in Q&A
Nov 3, 2022 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @jhanley87

This addition is now released. I have created a Codesandbox demonstrating how you can adjust the side modal width using the customization provider.

https://codesandbox.io/s/custom-side-modals-6miwun?file=/src/index.tsx

You can either change the width of all side modals in your app by targeting the element name provided by Paste.

<CustomizationProvider
  baseTheme="default"
  elements={{
    SIDE_MODAL_CONTAINER: {
      width: "50%"
    }
  }}
>
...
</CustomizationProvider>

Or create one off side modal by providing your own custom element name for the SideModal

<SideModalContainer>
  <SideModalButton variant="primary">
    Open Custom Side Modal
  </SideModalButton>
  <Side…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@SiTaggart
Comment options

@jhanley87
Comment options

@SiTaggart
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by SiTaggart
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