This sheet demonstrates the use of Tailwind's max-w-xl class.
A fixed-width sheet
This sheet demonstrates a fixed width of 200px. Using fixed widths allows for consistent layouts across different screen sizes, ideal for forms, alerts, or focused content that doesn't require full-width display.
A full width sheet
This full-width modal spans the entire screen, maximizing content visibility. It's ideal for displaying large amounts of information or complex layouts.
<.buttonphx-click={Fluxon.open_dialog("sheet-size-max-w-xl")}>Max width</.button><.sheetid="sheet-size-max-w-xl"class="max-w-xl"><p>A sheet with a max-width</p></.sheet><.buttonphx-click={Fluxon.open_dialog("sheet-size-200px")}>Fixed width</.button><.sheetid="sheet-size-200px"class="w-[200px]"><p>A fixed-width sheet</p></.sheet><.buttonphx-click={Fluxon.open_dialog("sheet-size-w-full")}>Full width</.button><.sheetid="sheet-size-w-full"class="w-full"><p>A full width sheet</p></.sheet>