Skip to content
Design System
GitHub

Restricted preview

v0.15.0Beta

A preview that is not loaded until someone asks: restricted data, or pictures with faces or number plates. Neutral, with the reason.

API reference

Generated from the types. Every part also takes className.

RestrictedPreview

restrictedrequired
booleanWhen false, the children show at once.
childrenrequired
ReactNode
label
string = "Restricted: show preview"The button's words.
reason
stringWhy it is hidden, e.g. "T2 · faces".
onReveal
() => voidCalled when someone asks to see it, e.g. to log the view.