Access Gate
A locked-content state: a centred card with a lock, benefits that draw in and actions. It sits in place of a page or over blurred or faded content, and unlocking opens the lock and brings the content in.
pixikit.com/docs/app-ui/feedback/access-gate
Customize
Locked
Preview
Tone
Props
13| Name | Type | Default | Description |
|---|---|---|---|
locked | boolean | true | Whether the content is locked. When false the children render plainly, and unlocking animates the gate away. |
title | string | "This content is locked" | The heading of the gate. |
description | string | None | A short line under the title. |
badge | string | None | A small pill above the title, such as a plan name. |
benefits | string[] | None | What unlocking gives; each line gets a check that draws in. |
action | AccessGateAction | None | The main button. |
secondary | AccessGateAction | None | A quieter second button. |
note | string | None | A small trust line under the buttons. |
preview | "none" | "blur" | "fade" | "none" | How the children show behind the gate while it is locked: not at all, blurred, or fading out toward the bottom. |
tone | "neutral" | "primary" | "neutral" | `primary` tints the icon, glow and button with the primary colour. |
icon | ReactNode | None | Replaces the lock icon. |
children | ReactNode | None | The content the gate guards. |
className | string | None |