snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
27
apps/v4/examples/radix/shimmer-once.tsx
Normal file
27
apps/v4/examples/radix/shimmer-once.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
"use client"
|
||||
|
||||
import * as React from "react"
|
||||
|
||||
import { Button } from "@/styles/radix-rhea/ui/button"
|
||||
|
||||
export function ShimmerOnce() {
|
||||
const [key, setKey] = React.useState(0)
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center gap-4">
|
||||
<p
|
||||
key={key}
|
||||
className="shimmer text-sm text-muted-foreground shimmer-duration-1100 shimmer-once"
|
||||
>
|
||||
Generating response…
|
||||
</p>
|
||||
<Button
|
||||
variant="outline"
|
||||
size="sm"
|
||||
onClick={() => setKey((value) => value + 1)}
|
||||
>
|
||||
Replay
|
||||
</Button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user