We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81a380a commit 7d09ea5Copy full SHA for 7d09ea5
examples/react-chayns-amountcontrol/Example.jsx
@@ -139,6 +139,35 @@ const AmountControlExample = () => {
139
buttonText="0,10"
140
showInput={amount > 0}
141
/>
142
+
143
+ <br />
144
145
+ <div style={{ display: 'flex', justifyContent: 'space-evenly' }}>
146
+ <AmountControl
147
+ amount={amount}
148
+ onChange={setAmount}
149
+ buttonText="min 2"
150
+ showInput={amount > 0}
151
+ min={2}
152
+ />
153
154
155
156
157
+ buttonText="max 5"
158
159
+ max={5}
160
161
162
163
164
165
+ buttonText="min 2, max 5"
166
167
168
169
170
+ </div>
171
</div>
172
);
173
};
0 commit comments