3.0.1 • Published 1 month ago

@axa-fr/react-toolkit-form-input-slider v3.0.1

Weekly downloads
104
License
MIT
Repository
github
Last release
1 month ago

@axa-fr/react-toolkit-form-input-slider

  1. Slider
  2. SliderInput
    1. SliderInput Required

Slider

Installation

npm i @axa-fr/react-toolkit-form-input-slider
npm i @axa-fr/react-toolkit-form-core

Import

import { Slider } from '@axa-fr/react-toolkit-form-input-slider';
import '@axa-fr/react-toolkit-form-input-slider/dist/af-slider.css';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';

Use

const options = [
  { label: '64', value: 64 },
  { label: '128', value: 128 },
  { label: '256', value: 256 },
  { label: '1024', value: 1024 },
  { label: '2048', value: 2048 },
  { label: '4096', value: 4096 },
];

const SliderInput = () => (
  <form className="af-form" name="myform">
    <Slider
      id="uniqueid"
      name="sliderName"
      options={options}
      value={2048}
      onChange={() => console.log('your function')}
    />
  </form>
);
export default SliderInput;

SliderInput

Installation

npm i @axa-fr/react-toolkit-form-input-slider
npm i @axa-fr/react-toolkit-form-core

Import

import { SliderInput } from '@axa-fr/react-toolkit-form-input-slider';
import '@axa-fr/react-toolkit-form-input-slider/dist/af-slider.css';
import { MessageTypes } from '@axa-fr/react-toolkit-form-core';
import '@axa-fr/react-toolkit-form-core/dist/af-form.css';

Use

const options = [
  { label: '64', value: 64 },
  { label: '128', value: 128 },
  { label: '256', value: 256 },
  { label: '1024', value: 1024 },
  { label: '2048', value: 2048 },
  { label: '4096', value: 4096 },
];

const SliderInputReturn = () => (
  <form className="af-form" name="myform">
    <SliderInput
      id="uniqueid"
      name="sliderInputName"
      label="Place name"
      options={options}
      value={1024}
      helpMessage="Enter the place name, ex : Webcenter"
      messageType={MessageTypes.error}
      onChange={() => console.log('your function')}
      classNameContainerLabel="col-md-2"
      classNameContainerInput="col-md-10"
    />
  </form>
);
export default SliderInputReturn;

SliderInput Required

To achieve SliderInput Required, you need to add this :

classModifier = 'required';

to the SliderInput component

3.0.1

1 month ago

3.0.0

1 month ago

3.0.0-alpha.1

2 months ago

3.0.0-alpha.2

2 months ago

3.0.0-alpha.0

3 months ago

2.3.1

7 months ago

2.3.1-alpha.0

7 months ago

2.3.0

8 months ago

2.3.0-alpha.2

8 months ago

2.3.0-alpha.0

10 months ago

2.2.0

11 months ago

2.2.0-alpha.0

11 months ago

2.2.0-alpha.1

11 months ago

2.1.1

11 months ago

2.1.1-alpha.0

11 months ago

2.1.0

12 months ago

2.1.0-alpha.6

1 year ago

2.1.0-alpha.5

1 year ago

2.1.0-alpha.4

1 year ago

2.1.0-alpha.3

1 year ago

2.0.1-alpha.1

1 year ago

2.1.0-alpha.2

1 year ago

2.1.0-alpha.1

1 year ago

2.0.0

2 years ago

2.0.1-alpha.0

2 years ago

2.0.0-alpha.11

2 years ago

2.0.0-alpha.8

2 years ago

2.0.0-alpha.9

2 years ago

2.0.0-alpha.10

2 years ago

2.0.0-alpha.3

3 years ago

2.0.0-alpha.4

3 years ago

2.0.0-alpha.5

3 years ago

1.4.1

3 years ago

1.4.0

4 years ago

2.0.0-alpha.0

4 years ago

2.0.0-alpha.1

4 years ago

1.4.0-alpha.1

4 years ago

1.4.0-alpha.0

4 years ago

1.3.23

4 years ago

1.3.21

4 years ago

1.3.16

4 years ago

1.3.14

4 years ago

1.3.13

4 years ago

1.3.12

4 years ago

1.3.11

5 years ago

1.3.10

5 years ago

1.3.9

5 years ago

1.3.9-alpha.0

5 years ago

1.3.8-alpha.0

5 years ago

1.3.7-alpha.0

5 years ago

1.3.6

5 years ago

1.3.6-alpha.0

5 years ago

1.3.5-alpha.0

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.2-alpha.0

5 years ago

1.2.16

5 years ago

1.2.15

5 years ago

1.2.14

5 years ago

1.2.13

5 years ago

1.2.12

5 years ago

1.2.11

5 years ago

1.2.10

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.6-alpha.0

5 years ago

1.2.5

6 years ago

1.2.5-alpha.0

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.2-alpha.0

6 years ago