A beautiful and customizable "Built with Convex" component, available for multiple frameworks!
This monorepo contains the following packages:
- @convex-nudge/core - Framework-agnostic core functionality
- @convex-nudge/react - React implementation
- @convex-nudge/vue - Vue implementation
- @convex-nudge/svelte - Svelte implementation
- @convex-nudge/remix - Remix implementation (extends React version)
Choose the package that matches your framework:
# React
npm install @convex-nudge/react
# Vue
npm install @convex-nudge/vue
# Svelte
npm install @convex-nudge/svelte
# Remix
npm install @convex-nudge/remix
import { ConvexNudge } from '@convex-nudge/react';
function App() {
return (
<ConvexNudge
variant="purple"
position="bottom"
animation="slide"
/>
);
}
<script setup>
import { ConvexNudge } from '@convex-nudge/vue';
</script>
<template>
<ConvexNudge
variant="purple"
position="bottom"
animation="slide"
/>
</template>
<script>
import { ConvexNudge } from '@convex-nudge/svelte';
</script>
<ConvexNudge
variant="purple"
position="bottom"
animation="slide"
/>
import { ConvexNudge } from '@convex-nudge/remix';
export default function App() {
return (
<ConvexNudge
variant="purple"
position="bottom"
animation="slide"
routeBasedDismissal
/>
);
}
Prop | Type | Default | Description |
---|---|---|---|
className |
string |
'' |
Additional CSS classes |
referralCode |
string |
'' |
Optional referral code for the Convex URL |
logoSize |
number |
24 |
Size of the Convex logo in pixels |
textSize |
'xs' | 'sm' | 'base' |
'xs' |
Size of the text |
variant |
'light' | 'dark' | 'purple' | 'blue' |
'light' |
Color variant |
position |
'top' | 'bottom' | 'left' | 'right' |
'bottom' |
Position of the nudge |
animation |
'fade' | 'slide' | 'none' |
'fade' |
Animation style |
fixed |
boolean |
false |
Whether to use fixed positioning |
dismissible |
boolean |
false |
Whether the nudge can be dismissed |
routeBasedDismissal
:boolean
- Reset visibility on route changes
This project uses pnpm workspaces. To get started:
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm test
# Development mode
pnpm dev
MIT