Type alias SliderProps

SliderProps: {
    accessibleText?: string;
    disabled?: boolean;
    hideLabel?: boolean;
    hideRangeLabels?: boolean;
    hideTextInput?: boolean;
    label: string;
    maxValue: number;
    minValue: number;
    onChange?: ((value) => void);
    style?: StyleProp<ViewStyle>;
    value: number;
}

Props for Slider component

Type declaration

  • Optional accessibleText?: string

    Text to use for slider (accessibility). Defaults to ENGLISH "Slider"

  • Optional disabled?: boolean

    Indicate if disabled

  • Optional hideLabel?: boolean

    Indicate if label should be hidden (label is used for accessibility even when hidden)

  • Optional hideRangeLabels?: boolean

    Indicate if range labels should be hidden

  • Optional hideTextInput?: boolean

    Indicate if text input should be hidden

  • label: string

    Text to render

  • maxValue: number

    Maximum Value

  • minValue: number

    Minimum Value

  • Optional onChange?: ((value) => void)
      • (value): void
      • Change event returns the current value of the item

        Parameters

        • value: number

        Returns void

  • Optional style?: StyleProp<ViewStyle>

    Style to set on the item

  • value: number

    Current value

Generated using TypeDoc