Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit d2a129c

Browse files
committed
Update timezone-select docs
1 parent c70f07b commit d2a129c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/components/timezone-select.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,19 @@ In both cases, this will output:
9090
```
9191

9292
With both methods, you can use a boolean value `false` to include every timezone region available.
93+
94+
## Custom Select Support
95+
96+
As of version `1.4.0`, the timezone select can be rendered either as a native select input, or by using the
97+
[custom-select component](/docs/laravel-form-components/v1/components/custom-select). To use the custom-select
98+
component, simply pass in a true boolean value for the `use-custom-select` attribute on the timezone select.
99+
100+
```html
101+
<x-timezone-select use-custom-timezone />
102+
```
103+
104+
By default, the timezone select uses the native select input, so you will explicitly tell it to use
105+
the custom-select component any time you render the timezone select component.
106+
107+
**Note:** If you want to render it as a custom-select, you need to ensure you have followed the
108+
[installation steps](/docs/laravel-form-components/v1/components/custom-select#installation) for the `custom-select` component.

0 commit comments

Comments
 (0)