emilkowalski / sonner

An opinionated toast component for React.

Home Page:https://sonner.emilkowal.ski

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toast width

natashatorres opened this issue · comments

I tried:
<Toaster
expand={true}
visibleToasts={9}
toastOptions={{
style: {
width: 'fit-content',
},
}}
/>

The style is applied to the toast but it's not changing anything. When I inspect changing the the second ol to width:100%; works.

Am I missing something on how to change the width of the toast?