- Integrates rc-slider with react-credit-calculator context
- Written on Typescript
Using npm
npm i react-credit-calculator-slider@^2.0
import * as React from "react";
import * as Calculator from "react-credit-calculator";
import { Slider } from "react-credit-calculator-slider";
const conditions: Calculator.ControllerProps;
return (
<Calculator.Controller {...conditions}>
{/** Controls for amount */}
<Calculator.ControlWrapper type="amount">
<Slider /> {/** See rc-slider for more props */}
</Calculator.ControlWrapper>
</Calculator.Controller>
);