Interface Action<T>

A single Solana Action

interface Action<T> {
    description: string;
    disabled?: boolean;
    error?: ActionError;
    icon: string;
    label: string;
    links?: {
        actions: LinkedAction[];
    };
    title: string;
    type: T;
}

Type Parameters

Properties

description: string

brief summary of the action to be performed

disabled?: boolean

UI state for the button being rendered to the user

error?: ActionError

non-fatal error message to be displayed to the user

icon: string

image url that represents the source of the action request

label: string

button text rendered to the user

links?: {
    actions: LinkedAction[];
}

Type declaration

  • actions: LinkedAction[]

    list of related Actions a user could perform

title: string

describes the source of the action request

type: T

type of Action to present to the user