Skip to content
PixiKit

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
NameTypeDefaultDescription
lockedbooleantrueWhether the content is locked. When false the children render plainly, and unlocking animates the gate away.
titlestring"This content is locked"The heading of the gate.
descriptionstringNoneA short line under the title.
badgestringNoneA small pill above the title, such as a plan name.
benefitsstring[]NoneWhat unlocking gives; each line gets a check that draws in.
actionAccessGateActionNoneThe main button.
secondaryAccessGateActionNoneA quieter second button.
notestringNoneA 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.
iconReactNodeNoneReplaces the lock icon.
childrenReactNodeNoneThe content the gate guards.
classNamestringNone

Related