Preset · Any occasion

Country Flag Bunting preset

Choose an English country slug or two-letter code from the locally packaged 249-entry catalog. The bunting preset requires flag, supports horizontal or vertical artwork and works independently of a national day or season.

Composition

A responsive cord of country flags for any occasion, with no additional effects.

React usage

The flag option is required. Use an English country slug or two-letter code from the 249-entry country catalog.

Decoration.tsx
import { Zeenat } from "zeenat";

export function Decoration() {
  return <Zeenat preset="bunting" flag="pakistan" intensity="medium" />;
}

Next.js App Router

app/layout.tsx
import { Zeenat } from "zeenat";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return <html><body><Zeenat preset="bunting" flag="pakistan" />{children}</body></html>;
}

Vanilla JavaScript

main.ts
import { zeenat } from "zeenat/vanilla";

const decoration = zeenat({ preset: "bunting", flag: "pakistan", intensity: "medium" });
// Later: decoration.destroy();

Typed customization

The Country Flag Bunting subpath exports createBuntingPreset. Its supported options are listed below.

Choose horizontal or vertical flag artwork. You can also pass orientation directly with this string preset in React or vanilla JavaScript. Vertical rotates the full design 90° clockwise and preserves its proportions.

TSX
import { Zeenat } from "zeenat";
import { createBuntingPreset } from "zeenat/presets/bunting";

const customized = createBuntingPreset({
  flag: "PK",
  orientation: "vertical",
});

<Zeenat preset={customized} />;
PropertyTypeDefaultDescription
flagCountryFlagrequiredCountry slug such as pakistan or a code such as PK or JP from zeenat/flags.
orientation"horizontal" | "vertical""horizontal"Rotate flag artwork 90° clockwise for vertical hanging, preserving its proportions.

Intensity and seed

Scene intensity scales effect counts without changing the preset API. A seed makes generated positions and timing deterministic across restarts.

TSX
<Zeenat preset="bunting" flag="pakistan" intensity="low" seed={2026} />

Reduced motion

The flag cord stays visible with its sway disabled.

Accessibility and reduced motion

Scheduling

Keep dates out of preset definitions. Schedule the scene at the call site with explicit time-zone offsets. Set the year and local offset for your event.

TSX
<Zeenat
  preset="bunting"
  flag="pakistan"
  activeFrom="2026-12-01T00:00:00Z"
  activeUntil="2027-01-01T00:00:00Z"
/>