Image and text animation

diwali
This commit is contained in:
2024-09-27 01:00:12 +05:30
parent 8d0a8903b4
commit 127e024374
19 changed files with 536 additions and 42 deletions

View File

@ -0,0 +1,16 @@
import React from 'react';
import styles from './PillButton.module.css';
type PillButtonProps = {
text: string; // text prop is now required
onClick?: () => void; // onClick is optional
};
export function PillButton({ text, onClick }: PillButtonProps) {
return (
<button onClick={onClick} className={styles.pillButton}>
{text}
<span className={styles.arrow}></span>
</button>
);
}