import { defineWebComponent } from './define'; import { TextShimmer } from '../components/text-shimmer'; interface Props extends Record { /** The text to shimmer. */ text?: string; /** Element tag to render as (default `span`). */ as?: string; /** Animation duration in seconds. */ duration?: number; /** Gradient spread (5–45). */ spread?: number; } /** * `` — animated shimmering text. Text via the `text` * attribute; `duration`/`spread` tune the effect. */ defineWebComponent('kc-text-shimmer', { text: '', as: 'span', duration: 4, spread: 20, }, (props) => ( {props.text} ));