Avataaars API Documentation - v3.1.0
    Preparing search index...

    Interface OptionState

    State for a single option in the OptionContext. Tracks available values, default value, and usage count.

    interface OptionState {
        key: OptionKey;
        options: readonly string[];
        defaultValue?: string;
        available: number;
    }
    Index

    Properties

    The option key

    options: readonly string[]

    Array of available option values

    defaultValue?: string

    Default value to use if none is set

    available: number

    Number of components currently using this option