Skip to content

Commit 6529e0c

Browse files
committed
feat(number): adding number options
1 parent bfc6252 commit 6529e0c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/resources/views/sections/components/number.blade.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<x-docs::summary>
44
<x-docs::summary.header href="#number-simple" label="Number Simple" />
55

6+
<x-docs::summary.header href="#number-options" label="Number Options" />
7+
68
<x-docs::summary.header href="#hold-directive" label="Hold Directive" />
79

810
<x-docs::summary.header href="#number-api" label="Number API" />
@@ -31,6 +33,22 @@
3133
</x-slot>
3234
</x-docs::code.preview>
3335

36+
<x-docs::subtitle id="number-options" title="Number Options" />
37+
38+
<x-docs::text>
39+
The number input accepts the html number input attributes, such as <x-docs::mark>min</x-docs::mark>,
40+
<x-docs::mark>max</x-docs::mark>, and <x-docs::mark>step</x-docs::mark>. These attributes allow you to set the
41+
minimum and maximum values, as well as the step value for the number input.
42+
</x-docs::text>
43+
44+
<x-docs::code.preview language="blade">
45+
<x-slot name="slot" class="max-w-sm mx-auto">
46+
@verbatim
47+
<x-number min="5" max="10" step="0.2" label="How many Burgers?" value="6" />
48+
@endverbatim
49+
</x-slot>
50+
</x-docs::code.preview>
51+
3452
<x-docs::subtitle id="hold-directive" title="Hold Directive" />
3553

3654
<x-docs::text>

0 commit comments

Comments
 (0)