# All files / src/rotate rotate.props.ts

100% Statements 3/3
100% Branches 2/2
100% Functions 1/1
100% Lines 3/3

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44

    1x
    1x
    1x

     import { ManagedClasses } from "@microsoft/fast-components-class-name-contracts-base";
    import { RotateClassNameContract } from "./rotate.class-name-contract";

    export enum Orientation {
        landscape = "landscape",
        portrait = "portrait",
    }

    export interface RotateManagedClasses extends ManagedClasses<RotateClassNameContract> {}
    export interface RotateUnhandledProps extends React.AllHTMLAttributes<HTMLElement> {}
    export interface RotateHandledProps extends RotateManagedClasses {
        /**
         * A callback used when the orientation has been updated
         */
        onUpdateOrientation: (orientation: Orientation) => void;

        /**
         * The orientation
         */
        orientation: Orientation;

        /**
         * Landscape orientation input disabled
         */
        landscapeDisabled?: boolean;

        /**
         * Portrait orientation input disabled
         */
        portraitDisabled?: boolean;

        /**
         * The label for the landscape input
         */
        landscapeLabel?: string;

        /**
         * The label for the portrait input
         */
        portraitLabel?: string;
    }

    export type RotateProps = RotateUnhandledProps & RotateHandledProps;