Repository navigation
Minor Changes
-
#106
ade17faThanks @GA-MO! - Custom UI gets the default look with no class names. Inside a dialog with the new look, plainh1toh3,p,label,input,textarea,selectandbuttonare styled under:where(), so any class you add wins and Tailwind v4 preflight does not strip them. Radios and checkboxes take the skin accent colour.unstyled: trueturns them off.DialogLayoutrenders a title, a message, your content and a row of actions. An action whoseonClickreturns a Promise is busy until it settles.confirm,alertandprompttakecontent: your JSX between the message and the buttons.messagecan be JSX.confirmAlert({ skin: true })andconfigureDialogs({ confirmAlert: { skin: true } })giveconfirmAlert, includingcustomUI, the new look. Withoutskin,confirmAlertkeeps the 3.0 look.- The playground opens on Custom UI examples, and the docs have a Custom UI page.
Size budgets grow to match:
confirmAlert3.8 kB,confirm4.1 kB, the CJS bundle 6.6 kB and the CSS 2.95 kB (gzip). The bytes are the skin option,content,DialogLayoutand the plain element rules, which repeat the button hover rules for plain buttons.
Patch Changes
- #106
23049b5Thanks @GA-MO! - Atextareawithdata-slot="input"in<Dialog>oropenDialognow fills the width, is at least 80px tall and resizes vertically. The dark theme setscolor-scheme: dark, so aselect's option list and scrollbars are dark too. The docs and playground examples mark up their content withdata-slot, so their fields keep a visible border under Tailwind preflight, and the Styling page lists the slots.