How to use
01Import the component
import InteractiveContactButton from "@/components/shitui/InteractiveContactButton";02Use in your application
export default function ContactTrigger() {
return (
<InteractiveContactButton
name="Swapnil Kalambe"
role="Design Engineer"
email="hello@example.com"
avatarUrl="https://unavatar.io/twitter/heyyswap"
availableForWork={true}
bookingUrl="https://cal.com/your-handle"
/>
);
}Features
Compact pill button with animated text slide and icon transition on hover.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| name | string | 'Swapnil Kalambe' | The display name shown on the expanded profile card. |
| role | string | 'Design Engineer' | Professional title or role subtitle. |
string | 'hello@example.com' | Email address copied to clipboard when clicking the email button. | |
| avatarUrl | string | - | URL for the profile photo avatar image. |
| availableForWork | boolean | true | Displays a pulsing green status indicator when set to true. |
| statusText | string | 'Available for work' | Custom status text next to the availability indicator. |
| bookingUrl | string | - | External link URL for the "Book a Call" button (e.g. Cal.com or Calendly). |
| buttonText | string | 'Contact' | Resting label for the trigger pill button. |
| buttonHoverText | string | 'Get in touch' | Hover label that slides into view on interaction. |
| theme | 'dark' | 'light' | 'dark' | Visual theme for the button and popover badge. |
| cardPosition | 'bottom-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | Alignment of the profile card relative to the trigger button. |
| className | string | - | Optional CSS class for styling the container. |