You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/inputs/date-picker.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ By using it, you can simply add a date and/or time picker to your form with one
10
10
11
11
## Installation
12
12
13
-
While the `date-picker` component works out-of-the-box when you've [set the directives](/docs/laravel-form-componentsvalue-fieldinstallation#directives),
13
+
While the `date-picker` component works out-of-the-box when you've [set the directives](/docs/laravel-form-components/installation#directives),
14
14
we recommend that you install and compile the JavaScript libraries before you deploy to production:
@@ -62,7 +62,7 @@ that flatpickr generates. If you want to prevent the button/icon from being disp
62
62
> {note} If you disable the toggle button, be sure to set `click-opens` to `true` on the component.
63
63
64
64
> {tip} You can also change the icon that is used for the toggle button either by setting the `toggle-icon` attribute, or by changing
65
-
> it globally [in the config](https://github.com/rawilk/laravel-form-components/blob/master/config/form-components.php#L103).
65
+
> it globally [in the config](https://github.com/rawilk/laravel-form-components/blob/{branch}/config/form-components.php#L103).
66
66
67
67
## Clearing
68
68
@@ -73,7 +73,7 @@ to `true` and an icon for clearing the input will be appended to the input.
73
73
<x-date-pickername="birthday"clearable />
74
74
```
75
75
76
-
The icon defaults to `heroicon-o-x-circle`, but you can easily customize this icon either [in the config](https://github.com/rawilk/laravel-form-components/blob/master/config/form-components.php#L109), or by setting the `clear-icon` attribute to the icon you want.
76
+
The icon defaults to `heroicon-o-x-circle`, but you can easily customize this icon either [in the config](https://github.com/rawilk/laravel-form-components/blob/{branch}/config/form-components.php#L109), or by setting the `clear-icon` attribute to the icon you want.
77
77
78
78
## Options
79
79
@@ -133,4 +133,4 @@ For more information on the callbacks available, please consult [the events api]
133
133
Like the other inputs, the date picker can also have leading and trailing addons, however by default you cannot add them.
134
134
To add leading addons, you must disable the toggle icon, and for trailing addons, you must set `clearable` to `false`.
135
135
136
-
See the [input documentation](/docs/laravel-form-components/v5/inputs/input#addons) for more information.
136
+
See the [input documentation](/docs/laravel-form-components/{version}/inputs/input#addons) for more information.
Copy file name to clipboardExpand all lines: docs/inputs/input.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ When there are errors for a field, the `aria-invalid` and `aria-describedby` att
59
59
```
60
60
61
61
The actual error message won't be rendered from the input component itself, but it can be automatically rendered for you
62
-
by wrapping the `<x-input />` component inside of a `<x-form-group />` component. Please refer to the [form-group documentation](/docs/laravel-form-components/v5/form/form-group#error-handling) for more information.
62
+
by wrapping the `<x-input />` component inside of a `<x-form-group />` component. Please refer to the [form-group documentation](/docs/laravel-form-components/{version}/form/form-group#error-handling) for more information.
63
63
64
64
The `aria-describedby` attribute takes the `name` attribute and appends `-error` to it, which will be the id given to the error message rendered by the `<x-form-group />` component. If you already have `aria-describedby` set on the input, the attribute
65
65
value will be merged with the error attribute value.
Copy file name to clipboardExpand all lines: docs/inputs/switch-toggle.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ for more info.
12
12
13
13
## Installation
14
14
15
-
While the `switch-toggle` component works out-of-the-box when you've [set the directive](/docs/laravel-form-components/v5/installation#directives),
15
+
While the `switch-toggle` component works out-of-the-box when you've [set the directive](/docs/laravel-form-components/{version}/installation#directives),
16
16
we recommend that you install and compile the JavaScript libraries before you deploy to production:
You are free to add your own sizes in your own stylesheets. Just reference the [switch toggle styles](https://github.com/rawilk/laravel-form-components/blob/master/resources/sass/utils/_switch.scss#L126) for guidance.
123
+
You are free to add your own sizes in your own stylesheets. Just reference the [switch toggle styles](https://github.com/rawilk/laravel-form-components/blob/{branch}/resources/sass/utils/_switch.scss#L126) for guidance.
Copy file name to clipboardExpand all lines: docs/installation.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ You may publish the config file via:
27
27
php artisan fc:publish
28
28
```
29
29
30
-
[Click here](https://github.com/rawilk/laravel-form-components/blob/master/config/form-components.php) to view the default configuration.
30
+
[Click here](https://github.com/rawilk/laravel-form-components/blob/{branch}/config/form-components.php) to view the default configuration.
31
31
32
32
## Directives
33
33
@@ -86,9 +86,9 @@ This is assuming your stylesheet is located in the `./resources/css/` directory
86
86
87
87
You could copy the built CSS from `vendor/rawilk/laravel-components/resources/js/laravel-form-components-styles/dist/styles.css` into your public folder, and then use a `link` tag in your blade/html to get it: `<link rel="stylesheet" href="{{ asset('css/laravel-form-components.css') }}">`.
88
88
89
-
If you would like to customize the CSS we provide, head over to [the section on Customizing CSS](/docs/laravel-form-components/v5/advanced-usage/customizing-css).
89
+
If you would like to customize the CSS we provide, head over to [the section on Customizing CSS](/docs/laravel-form-components/{version}/advanced-usage/customizing-css).
90
90
91
-
> {tip} If you are using Purge CSS or Tailwind's JIT compiler, you should check out the section on [Purge CSS](/docs/laravel-form-components/v5/advanced-usage/customizing-css#purge-csstailwind-jit)
91
+
> {tip} If you are using Purge CSS or Tailwind's JIT compiler, you should check out the section on [Purge CSS](/docs/laravel-form-components/{version}/advanced-usage/customizing-css#purge-csstailwind-jit)
92
92
> to prevent styles from being lost in production or at compile time.
93
93
94
94
## Components
@@ -104,7 +104,7 @@ and/or view of your own.
104
104
105
105
## Component JavaScript
106
106
107
-
Some components, such as the [custom select component](/docs/laravel-form-components/v5/selects/custom-select), require custom
107
+
Some components, such as the [custom select component](/docs/laravel-form-components/{version}/selects/custom-select), require custom
108
108
JavaScript to run. The JavaScript is extracted to an external file since it is pretty substantial and should be minified. If
109
109
you are using any components that depend on this JavaScript, be sure you are pulling the scripts in through either the
110
110
`@fcJavaScript` or `@fcScripts` blade directives in your layout file. See [directives](#directives) for more information.
> {tip} See the [JavaScript Dependencies section](/docs/laravel-form-components/v5/installation#javascript-dependencies) for more information on installing them.
21
+
> {tip} See the [JavaScript Dependencies section](/docs/laravel-form-components/{version}/installation#javascript-dependencies) for more information on installing them.
22
22
23
23
## Basic Usage
24
24
@@ -234,4 +234,4 @@ the select menu now. In addition to positioning the menu when opened, Popper.js
234
234
## Addons
235
235
236
236
The custom select component supports leading addons, but since there are already elements appended to the end
237
-
of the button trigger, trailing addons are not supported. For more information on addons, see [the input documentation](/docs/laravel-form-components/v5/inputs/input#addons).
237
+
of the button trigger, trailing addons are not supported. For more information on addons, see [the input documentation](/docs/laravel-form-components/{version}/inputs/input#addons).
0 commit comments