Skip to content

UseFingerprintOptions

Defined in: packages/fingerprint/src/react/useFingerprint.ts:17

What useFingerprint takes.

dimensions: readonly Dimension[]

Defined in: packages/fingerprint/src/react/useFingerprint.ts:21

Every dimension the items carry values for.


optional form?: Partial<FingerprintForm>

Defined in: packages/fingerprint/src/react/useFingerprint.ts:30

Overrides fields of the form formFromItems derives from the data.


optional initialViewId?: string

Defined in: packages/fingerprint/src/react/useFingerprint.ts:28

The view shown first. Defaults to the first.


items: readonly Item[]

Defined in: packages/fingerprint/src/react/useFingerprint.ts:19

One per mark (below the cap), unique ids. Treated as immutable: pass a new array to change it.


optional maxMarks?: number

Defined in: packages/fingerprint/src/react/useFingerprint.ts:34

Above this many items, marks stand for several. Defaults to 600.


optional seed?: string

Defined in: packages/fingerprint/src/react/useFingerprint.ts:32

Seeds the form’s free fields. Same seed, same picture. Defaults to “fingerprint”.


optional unit?: string

Defined in: packages/fingerprint/src/react/useFingerprint.ts:36

What one item is, for the description and announcements. Defaults to “items”.


optional views?: readonly View[]

Defined in: packages/fingerprint/src/react/useFingerprint.ts:26

The ways of looking, in switcher order. Defaults to one view per dimension, each driving colour, shape and arrangement from that dimension alone.