Skip to content

Commit f09985e

Browse files
committed
Playground: Add demo for multiselect-autocomplete
1 parent 72d38cd commit f09985e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/src/demos.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,26 @@ const DEMOS = [
253253
)
254254
},
255255

256+
{
257+
name: 'Multi select + Autocomplete',
258+
slug: 'multiselect-autocomplete',
259+
schema: {
260+
type: 'array',
261+
title: 'Countries',
262+
items: {
263+
type: 'string',
264+
widget: 'multiselect-autocomplete',
265+
handler: 'https://run.mocky.io/v3/b4f1afe0-01a5-4218-988c-36b320a7373c'
266+
}
267+
},
268+
description: () => (
269+
<div>
270+
Multiple selections only work inside an array.<br/>
271+
This demo uses a placeholder JSON API to load data. Hence, autocompletion may not work as expected.
272+
</div>
273+
)
274+
},
275+
256276
{
257277
name: 'Textarea',
258278
slug: 'textarea',

0 commit comments

Comments
 (0)