@pagix/logo-clouds
v0.2.1
Published
Anvilkit Puck-native logo-clouds component.
Downloads
33
Readme
@pagix/logo-clouds
A Puck-native logo cloud component with a shimmering heading and a scrolling Devicon logo marquee.
Install
pnpm add @pagix/logo-clouds @anvilkit/ui @puckeditor/coreStyles
Import the package stylesheet once from your app entry before rendering the component.
import "@pagix/logo-clouds/styles.css";In Next.js, add the import to app/layout.tsx or pages/_app.tsx.
Examples
Basic usage
Render the section with its default copy via defaultProps.
import "@pagix/logo-clouds/styles.css";
import { LogoClouds, defaultProps } from "@pagix/logo-clouds";
export function Example() {
return <LogoClouds {...defaultProps} />;
}Custom heading and subtitle
The shimmering heading is driven by title; subtitle renders the supporting
copy beneath it. The scrolling logo marquee is built in.
import { LogoClouds } from "@pagix/logo-clouds";
export function TrustedBy() {
return (
<LogoClouds
title="Trusted by builders"
subtitle="Teams of every size ship polished products with our stack."
/>
);
}Register in a Puck config
Wire the exported componentConfig into a Puck Config.
import type { Config } from "@puckeditor/core";
import { componentConfig, type LogoCloudsProps } from "@pagix/logo-clouds";
const config: Config<{ LogoClouds: LogoCloudsProps }> = {
components: {
LogoClouds: componentConfig,
},
};API
Derived from the exported LogoCloudsProps type and the Puck fields schema.
| Prop | Type | Default | Description |
| ---------- | -------- | ------------------- | ---------------------------------- |
| title | string | "Brands love us" | Shimmering heading text. |
| subtitle | string | (trusted-by copy) | Supporting copy below the heading. |
Theme & Responsiveness
Supports light and dark themes via shadcn CSS variable tokens. Responsive across mobile, tablet, and desktop breakpoints.
