Logo Grid
Description
The Logo Grid component is designed to showcase a collection of logos in a responsive grid layout. It's ideal for displaying partner logos, client lists, or brand affiliations. The component features a customizable header and a grid of logo images, each of which can be linked to external or internal pages.
Installation
bash
sabaccui add logoGrid
Usage
Here's an example of how to use the Logo Grid component in a Storyblok block:
Schema
Field Name | Type | Description | Default Value |
---|---|---|---|
header | text | The title displayed above the logo grid | "" |
logos | bloks | An array of imageLink components representing the logos | [] |
header
- Type:
text
- Description: A text field for the title or description of the logo grid section.
- Default: Empty string
logos
- Type:
bloks
- Description: An array of imageLink components, each representing a logo with its image and link properties.
- Constraints: Only allows
imageLink
components - Default: Empty array
Related Components
Notes
- The logos are displayed in a responsive grid layout, automatically adjusting based on screen size.
- Each logo is rendered as a grayscale image (brightness-0 and invert CSS classes) to maintain visual consistency.
- The component uses the
buildLink
helper function to construct proper URLs for the logo links. - The grid layout uses Flexbox for alignment and spacing, with customizable gap properties.
- The header is styled as uppercase, bold, and centered, with a gray color for subtle emphasis.
- When implementing this component, ensure that the logo images are appropriately sized and optimized for web display.
- The component is nestable, allowing it to be used within other complex layouts or components.
- It's tagged as an "Organism" in the component hierarchy, indicating its role as a larger, self-contained section of the UI.