Skip to content

Commit 0b3d178

Browse files
committed
docs(clayui.com): LPD-71044 Stop using deprecated label attribute
1 parent ddf5426 commit 0b3d178

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/clay-drop-down/docs/drop-down.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -388,21 +388,21 @@ To render a cascading menu it is necessary to set the `type` of the item to `con
388388

389389
```js
390390
const items = [
391-
{label: 'Folder'},
391+
{title: 'Folder'},
392392
{type: 'divider'},
393393
{
394394
items: [
395-
{label: 'Basic Document'},
396-
{label: 'Contract'},
397-
{label: 'Marketing Banner'},
398-
{label: 'Spreadsheet'},
399-
{label: 'Presentation'},
395+
{title: 'Basic Document'},
396+
{title: 'Contract'},
397+
{title: 'Marketing Banner'},
398+
{title: 'Spreadsheet'},
399+
{title: 'Presentation'},
400400
],
401-
label: 'Document',
401+
title: 'Document',
402402
type: 'contextual',
403403
},
404-
{label: 'Shortcut'},
405-
{label: 'Repository'},
404+
{title: 'Shortcut'},
405+
{title: 'Repository'},
406406
];
407407
```
408408

0 commit comments

Comments
 (0)