| 1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * Derived from vercel/ai-elements (skills/ai-elements/scripts/shimmer-duration.tsx).
- * Copyright 2023 Vercel, Inc. Licensed under Apache-2.0.
- * Modified by ZCode: local integration, formatting and adaptations.
- * See THIRD-PARTY-NOTICES.md in the repository root for license and provenance.
- */
- "use client";
- import { Shimmer } from "@/components/ai-elements/shimmer";
- const Example = () => (
- <div className="flex flex-col gap-6 p-8">
- <div className="text-center">
- <p className="mb-3 text-muted-foreground text-sm">Fast (1 second)</p>
- <Shimmer duration={1}>Loading quickly...</Shimmer>
- </div>
- <div className="text-center">
- <p className="mb-3 text-muted-foreground text-sm">Default (2 seconds)</p>
- <Shimmer duration={2}>Loading at normal speed...</Shimmer>
- </div>
- <div className="text-center">
- <p className="mb-3 text-muted-foreground text-sm">Slow (4 seconds)</p>
- <Shimmer duration={4}>Loading slowly...</Shimmer>
- </div>
- <div className="text-center">
- <p className="mb-3 text-muted-foreground text-sm">Very Slow (6 seconds)</p>
- <Shimmer duration={6}>Loading very slowly...</Shimmer>
- </div>
- </div>
- );
- export default Example;
|