Ship the first version this week

Tessel opens to 200 new teams every Monday. Leave your email and we will send one message when your invite is ready.

You’re on the list. One email, on a Monday.

Code

<!-- glass-cta.free.js: download it from the Install section below and host it with your site -->
<script src="/glass-cta.free.js" defer></script>

<glass-cta
  heading="Ship the first version this week"
  text="One email when your invite is ready."
  cta="Join the waitlist"
  placeholder="you@company.com"
  success="You’re on the list."
  theme="light"
></glass-cta>

<!-- the component never sends the address: you do, then tell it how it went -->
<script>
  const cta = document.querySelector('glass-cta');
  cta.addEventListener('submit', async (e) => {
    cta.setAttribute('state', 'loading');
    const res = await fetch('/api/waitlist', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ email: e.detail.email }),
    });
    cta.setAttribute('state', res.ok ? 'success' : 'error');
  });
</script>

In context

Ready when you are

Free for teams of three. No card needed.

One button

Get the monthly changelog

One email a month. Unsubscribe in one click.

Subscribed. See you next month.
Sunset, on a phone Pro

Install · Free Web Component

One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.

1. Install with one command — or download the file
shadcn CLI · React
npx shadcn@latest add https://www.ui-design.co/r/glass-cta.json
2. Load it and use the element
HTML
<!-- glass-cta.free.js: download it from the Install section below and host it with your site -->
<script src="/glass-cta.free.js" defer></script>

<glass-cta
  heading="Ship the first version this week"
  text="One email when your invite is ready."
  cta="Join the waitlist"
  placeholder="you@company.com"
  success="You’re on the list."
  theme="light"
></glass-cta>

<!-- the component never sends the address: you do, then tell it how it went -->
<script>
  const cta = document.querySelector('glass-cta');
  cta.addEventListener('submit', async (e) => {
    cta.setAttribute('state', 'loading');
    const res = await fetch('/api/waitlist', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({ email: e.detail.email }),
    });
    cta.setAttribute('state', res.ok ? 'success' : 'error');
  });
</script>
3. React + TypeScript (optional)

The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:

TypeScript
// glass-cta.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    'glass-cta': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
      heading?: string;
      text?: string;
      cta?: string;
      placeholder?: string;
      mode?: 'email' | 'button';
      href?: string;
      success?: string;
      error?: string;
      state?: 'idle' | 'loading' | 'success' | 'error';
      size?: number | string;
      'input-label'?: string;
      theme?: 'light' | 'dark';
    };
  }
}

Pro · React + TypeScript Pro

One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.

  • React component with TypeScript types and the full source — state and onSubmit fit any form library or server action
  • Sunset, Mint and Mono tints for the colour field, the rim and the check, plus custom tints from Brand Fit
  • The vanilla Web Component with every tint, a demo page, README and license

Attributes & props

NameTypeDefaultDescription
heading string—The headline, rendered as an <h2>.
text string—One line under the headline.
cta string'Join the waitlist'The button label.
mode 'email' | 'button''email'An email field with a button, or a single button. Below 470px of width the email row stacks.
placeholder string'you@company.com'Placeholder of the email field.
success string'You’re on the list. We’ll be in touch.'The confirmation line the row turns into.
state 'idle' | 'loading' | 'success' | 'error'—Set it to drive the row while your own request runs: loading spins the button, success plays the confirmation, error shows the error line. Leave it out and a valid submit goes straight to success.
error string'Something went wrong. Please try again.'The line shown under the field with state="error". Validation has its own wording ("That doesn’t look like an email address…").
href string—Button mode: makes the button a real link.
size number (px)54Height of the field and button; their type scales with it. The headline scales with the width of the section.
theme 'light' | 'dark''light'White or dark glass.
submit (event) CustomEvent—Fired once the address is valid, with detail.email. It does not bubble, so it can never be mistaken for the submit of a form around it. React: onSubmit(email).
press (event) CustomEvent—Button mode: the button was pressed. React: onPress().
reset() / value method / property—el.reset() empties the row and returns it to idle; el.value reads or sets the address. React: a ref with reset(), focus(), value() and setValue().
tint Pro'aurora' | 'sunset' | 'mint' | 'mono' | object'aurora'The colour field, the rim of the field and the check bead, or a custom tint. Free build ships Aurora only.

The component never sends the address anywhere: it checks it, fires submit and shows the state you set. Enter in the field submits and is kept away from any form around the section. The email field is a real <input type="email"> with autofill; errors are announced with role="alert" and the confirmation with role="status", and focus moves to the confirmation so keyboard users are not left on a hidden field. The colour field is plain CSS, three blurred shapes under a mask that fades on all four sides, so there is no edge to hide; it stops moving off-screen. The glass blurs whatever is behind it. Everything scales with the width of the section through container queries, from 320px up. With reduced motion the field is still and the confirmation appears at once.

More components