Skip to content

Commit

Permalink
feat(number): adding number options
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopalopes24 committed Oct 8, 2024
1 parent bfc6252 commit 6529e0c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/resources/views/sections/components/number.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<x-docs::summary>
<x-docs::summary.header href="#number-simple" label="Number Simple" />

<x-docs::summary.header href="#number-options" label="Number Options" />

<x-docs::summary.header href="#hold-directive" label="Hold Directive" />

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

<x-docs::subtitle id="number-options" title="Number Options" />

<x-docs::text>
The number input accepts the html number input attributes, such as <x-docs::mark>min</x-docs::mark>,
<x-docs::mark>max</x-docs::mark>, and <x-docs::mark>step</x-docs::mark>. These attributes allow you to set the
minimum and maximum values, as well as the step value for the number input.
</x-docs::text>

<x-docs::code.preview language="blade">
<x-slot name="slot" class="max-w-sm mx-auto">
@verbatim
<x-number min="5" max="10" step="0.2" label="How many Burgers?" value="6" />
@endverbatim
</x-slot>
</x-docs::code.preview>

<x-docs::subtitle id="hold-directive" title="Hold Directive" />

<x-docs::text>
Expand Down

0 comments on commit 6529e0c

Please sign in to comment.