FontAwesome React API Reference
    Preparing search index...

    Type Alias GradientStop

    type GradientStop = {
        color: string;
        offset: string | number;
        opacity?: number;
    }
    Index

    Properties

    Properties

    color: string

    The color of the gradient stop, specified as a valid CSS color string (e.g., '#FF0000', 'rgb(255, 0, 0)', 'red').

    offset: string | number

    The offset of the gradient stop, specified as a percentage (e.g., '0%', '50%', '100%') or a number between 0 and 1 (e.g., 0, 0.5, 1).

    opacity?: number

    The opacity of the gradient stop, specified as a number between 0 and 1 (e.g., 0, 0.5, 1). This is optional and defaults to 1 if not provided.