IQrCodeSlots

interface
Data Display

Slots contract for <OrigamQrCode>. The center slot replaces the default icon/image overlay. When provided, both icon and image props are ignored.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

center
(bindings: { size: number }) => any
Replaces the default icon or image overlay. Receives the resolved size of the central reserved square in module units so the consumer can paint a custom SVG or icon without re-deriving the geometry.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Custom center overlay with brand logo

html