mirror of
https://github.com/Xevion/xevion.dev.git
synced 2025-12-07 11:17:06 -06:00
18 lines
397 B
TypeScript
18 lines
397 B
TypeScript
import {FunctionComponent} from "react";
|
|
|
|
type SteppedSpanProps = {
|
|
children: string;
|
|
}
|
|
|
|
const SteppedSpan: FunctionComponent<SteppedSpanProps> = ({children}: SteppedSpanProps) => {
|
|
return <div className="stepped">
|
|
|
|
{children.split('').map((char: string, index) => {
|
|
return <span key={index}>
|
|
{char}
|
|
</span>
|
|
})}
|
|
</div>
|
|
}
|
|
|
|
export default SteppedSpan; |