Image Picker
<sl-image-picker> | SlImagePicker
Image picker.





<sl-image-picker> <img src="/next/assets/examples/carousel/mountains.jpg" /> <img src="/next/assets/examples/carousel/waterfall.jpg" /> <img src="/next/assets/examples/carousel/sunset.jpg" /> <img src="/next/assets/examples/carousel/field.jpg" /> <img src="/next/assets/examples/carousel/valley.jpg" /> </sl-image-picker>
Examples
First Example
TODO
Second Example
TODO
[component-metadata:sl-image-picker]
Slots
Name | Description |
---|---|
(default) | The default slot. Contains the images |
label
|
the label to be shown |
Learn more about using slots.
Events
Name | React Event | Description | Event Detail |
---|---|---|---|
sl-change |
|
When an image is clicked. | - |
sl-input |
|
When an image is clicked. | - |
Learn more about events.
Parts
Name | Description |
---|---|
base |
The component’s base wrapper. |
Learn more about customizing CSS parts.