Signup
A closing section: a headline, a line, and one email pill with its button inside.
$149 once · every Pro piece
Customize
idle
error
done
Errors show inline and clear the moment the address is fixed. On submit the button's bone face closes into a spinner, then draws a check; a warm pulse crosses the field and a few sparks come off it and fall away.
Install
npx shadcn@latest add @obsyde/signupNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { Signup } from '@/components/obsyde/ember/signup/Signup';
export function Example() {
return (
<Signup buttonLabel="Subscribe" />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/signup/Signup.tsxcomponentember/signup/signup-demo.cssstylesember/signup/signup.cssstylesember/signup/SignupDemo.tsxdemoember/blocks-kit/SparkBurst.tssharedember/shared/accent.tssharedember/shared/spring.tssharedember/blocks-kit/check.csssharedember/blocks-kit/Check.tsxsharedember/blocks-kit/blocks-kit.csssharedember/blocks-kit/kit.tsxsharedember/shared/ember.cssshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
stateStart as | 'idle' | 'error' | 'done' | 'idle' |
buttonLabelButton label | string | 'Subscribe' |
delayPretend request (ms) | number | 1200 |