@kayelaa/canvas API - v0.2.15
    Preparing search index...

    Interface FlexProps

    Base props that every Kayla functional component can receive.

    Extend this interface when defining custom component props.

    interface PlayerProps extends FCProps {
    initialSpeed?: number;
    color: string;
    }
    interface FlexProps {
        direction?: "row" | "column";
        align?: "center" | "end" | "start" | "stretch" | "baseline";
        justify?:
            | "center"
            | "end"
            | "start"
            | "space-between"
            | "space-around"
            | "space-evenly";
        wrap?: "wrap"
        | "nowrap"
        | "wrap-reverse";
        gap?: number;
        getHeight(): number;
        getWidth(): number;
        getCenterX(): number;
        getCenterY(): number;
        color: string;
        key?: string;
        children?: KaylaElement<any> | KaylaElement<any>[];
        ref?: KaylaRef<KaylaRectEntity>;
        exportsRef?: KaylaRef<KaylaExports<any>>;
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown
    Index

    Properties

    direction?: "row" | "column"
    align?: "center" | "end" | "start" | "stretch" | "baseline"
    justify?:
        | "center"
        | "end"
        | "start"
        | "space-between"
        | "space-around"
        | "space-evenly"
    wrap?: "wrap" | "nowrap" | "wrap-reverse"
    gap?: number
    color: string
    key?: string
    children?: KaylaElement<any> | KaylaElement<any>[]
    exportsRef?: KaylaRef<KaylaExports<any>>

    Methods