āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/ibelick/motion-primitives/text-shimmer-wave/page ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
export const metadata = { title: 'Text Shimmer Wave - Motion-Primitives', description: 'Shimmer wave effect on text. Easily adjust the wave effect, spread, duration, and more. Built for React, Next.js, and Tailwind CSS.', };
import ComponentCodePreview from '@/components/website/component-code-preview'; import { TextShimmerWaveBasic } from './text-shimmer-wave-basic'; import { TextShimmerWaveColor } from './text-shimmer-wave-color';
Shimmer wave effect on text. Easily adjust the wave effect, spread, duration, and more.
<ComponentCodePreview component={<TextShimmerWaveBasic />} filePath='app/docs/text-shimmer-wave/text-shimmer-wave-basic.tsx' />
You can use the [--base-color] and [--base-gradient-color] CSS variables to customize the color of the shimmer effect.
<ComponentCodePreview component={<TextShimmerWaveColor />} filePath='app/docs/text-shimmer-wave/text-shimmer-wave-color.tsx' />
<CodeBlock filePath='components/core/text-shimmer-wave.tsx' />
<Step>Update the import paths to match your project setup.</Step>
</Steps>
</TabsContent>
</Tabs>
| Prop | Type | Default | Description | | :-------------- | :--------- | :------ | :---------------------------------------- | | children | string | | The text content. | | as | string | 'p' | The HTML element to render. | | className | string | | The class name to apply to the component. | | duration | number | 1 | The duration of the wave effect. | | zDistance | number | 10 | The distance of the wave effect. | | xDistance | number | 2 | The distance of the wave effect. | | yDistance | number | -2 | The distance of the wave effect. | | spread | number | 1 | The spread of the wave effect. | | scaleDistance | number | 1.1 | The scale distance of the wave effect. | | rotateYDistance | number | 10 | The rotateY distance of the wave effect. | | transition | Transition | | The transition of the wave effect. |
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā