1.0.0 • Published 6 months ago
clerk-framer-plugin v1.0.0
Clerk Authentication Plugin for Framer
A powerful authentication plugin that integrates Clerk.com into your Framer projects. This plugin provides a seamless authentication experience with customizable UI components and event handling.
Features
- 🔐 Complete authentication flow (Sign In, Sign Up, User Management)
- 🎨 Customizable appearance and themes
- 🔄 Loading states and error handling
- 📱 Responsive design
- 🎯 Event callbacks for authentication actions
- 🌈 Social authentication support
Installation
- Open your Framer project
- Go to Insert > Get More Plugins
- Search for "Clerk Authentication"
- Click Install
Usage
1. Get Your Clerk API Key
- Sign up at clerk.com
- Create a new application
- Copy your Publishable Key
2. Add the Component
- Drag the Clerk Authentication component onto your canvas
- Paste your Publishable Key in the properties panel
3. Configure the Component
Choose from three modes:
- Sign In: Display the sign-in form
- Sign Up: Display the sign-up form
- User Button: Show the user profile button
Properties
Authentication
publishableKey
: Your Clerk publishable keymode
: Component display mode (sign-in/sign-up/user-button)allowSignUp
: Enable/disable sign-up optionredirectUrl
: URL to redirect after authentication
Appearance
appearance
: Light or dark themeprimaryColor
: Main color for buttons and accentsborderRadius
: Corner roundness (0-24px)showLoadingState
: Show/hide loading spinnersocialButtonsVariant
: Style of social login buttons
Events
onSignInSuccess
: Triggered after successful sign-inonSignUpSuccess
: Triggered after successful sign-uponSignOutSuccess
: Triggered after sign-out
Examples
Basic Sign-In Form
<ClerkAuth
publishableKey="your_key_here"
mode="sign-in"
appearance="light"
/>
Customized User Button
<ClerkAuth
publishableKey="your_key_here"
mode="user-button"
primaryColor="#0066FF"
borderRadius={12}
/>
Complete Auth Flow
<ClerkAuth
publishableKey="your_key_here"
mode="sign-in"
allowSignUp={true}
redirectUrl="/dashboard"
onSignInSuccess={() => console.log("Signed in!")}
/>
Best Practices
Security
- Always keep your Publishable Key secure
- Use environment variables when possible
- Never expose sensitive credentials
User Experience
- Customize the appearance to match your brand
- Enable loading states for better feedback
- Provide clear error messages
Integration
- Set up proper redirect URLs
- Handle authentication events
- Test all authentication flows
Troubleshooting
Common Issues
Component Not Loading
- Verify your Publishable Key
- Check internet connection
- Ensure Clerk account is active
Styling Issues
- Reset any conflicting CSS
- Check theme settings
- Verify custom color formats
Authentication Errors
- Validate redirect URLs
- Check Clerk dashboard settings
- Verify API key permissions
Support
For issues and feature requests, please visit:
License
MIT License - see LICENSE file for details
1.0.0
6 months ago