Homepage: Implment Brand section (drSquatch) #30
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Shop/Shop-Storefront#30
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
VtBrand — Usage Guide
items[].imageSrcwithalt, or text fallback viaitems[].label.Location
VtBrandin the dynamic layout system.Add To A Page
Config Fields
config.title— optional section heading. Default "Trusted By".config.className— outer section classes. Defaultw-full py-12 bg-[#CFECD9].config.innerClassName— inner wrapper. Defaultcontent-container flex flex-col items-center.config.titleClassName— title element classes. Defaulttext-[#1f3521] text-[20px] font-bold mb-8.config.brandsClassName— row layout for logos. Defaultflex w-full items-center justify-between gap-12.config.itemClassName— per-item wrapper defaults. Defaultopacity-90.config.imageClassName— default for all images. Defaulth-[48px] w-auto object-contain.config.labelClassName— text fallback style. Defaulttext-[#1f3521] text-[36px] font-semibold.config.items[]— array of brand entries:imageSrc,alt, optionalcontainerClassName,imageClassName,href.imageSrc, providelabel, optionalclassName.Behavior
itemsis empty, the component returns nothing.hrefis supplied, the item wraps with a localized link for country-aware routing.altfalls back tolabelorbrand-{index}whenaltis omitted.Examples
Styling Tips
imageClassNameand usingobject-containto preserve aspect ratio.brandsClassName(gap-*,justify-*) and per-logocontainerClassName.public/brands/for simpleimageSrcpaths.