Image and text animation
diwali
This commit is contained in:
16
src/components/PillButton.tsx
Normal file
16
src/components/PillButton.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user