Repository navigation
v0.20.0
Minor Changes
-
#267
9424673Thanks @silveltman! - Simplify block props and improve block semantics (breaking).- Blocks drop unused fields and button variants: button styles are fixed in each block. User-facing copy such as screen reader labels, close labels and rating labels is passed in by the caller. Banner1 takes an optional
storageKeyfor dismissal instead of a shared hardcoded key.BannerContainergains an optionalcloseLabelandSidebargains optionalmobileTitleandmobileDescription. SectionContaineronly sets width, gutter and position. It no longer addsflex flex-col gap-8; add the layout classes your content needs, such asclass="flex flex-col gap-8".- Marquee renders its items once and moves them with Embla and its Auto Scroll plugin. Compose it from
Marquee,MarqueeContent(reversereplacesdirection),MarqueeItemandMarqueeToggle(playLabel,pauseLabel). It stays static without an enabled, visible toggle, with reduced motion, or when the items do not fill the row. Theduration,gap,infiniteandpauseOnHoverprops are removed; set--marquee-gapfor spacing. Logos2, Reviews4 and Reviews5 takelabels: { play, pause }. PriceValuetakesdiscountLabelfor the savings badge, keeps a0price or compare-at price, and only shows a compare-at price above the price. Pricing1-3, Product1 and Products1-5 takelocaleanddiscountLabel, and every price is{ value, compareAt?, currency, unit }. Pricing2 emphasizes plans withfeaturedinstead of the first plan.- Header1-5 render their
buttonsin the mobile menu too and no longer have a default ormobileslot. Buttons always show their label and open in the same tab unless they settarget: "_blank". The logo takes typed images withoutalt, and Header4 and Header5 menu images are decorative. - Features1 and Features4 take
link?: { label, href }instead ofhrefandlinkText. Services4 and Services5 take alinkper service instead oflinkLabel. - Contact1-3 render your form from their default slot instead of building one from
formprops. Contact items link their visible text. - Sidebar1 takes
currentPathand native attributes for its root, andlabels.sidebarnames the sidebar whilelabels.sidebarTogglenames its trigger. - Hero1's badge is optional. Background images in Hero3, Hero4, Hero9-11 and CTA4 are decorative and take no
alt; social proof avatars no longer takename.
- Blocks drop unused fields and button variants: button styles are fixed in each block. User-facing copy such as screen reader labels, close labels and rating labels is passed in by the caller. Banner1 takes an optional