Skip to content

Commit 6500363

Browse files
committed
Use title instead of label in playground choices
1 parent 40e5ae0 commit 6500363

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

‎docs/src/demos.js‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,18 @@ const DEMOS = [
6161
},
6262

6363
{
64-
name: 'Choices with custom labels',
65-
slug: 'choices-with-custom-labels',
64+
name: 'Choices with custom titles',
65+
slug: 'choices-with-custom-titles',
6666
schema: {
6767
type: 'object',
6868
keys: {
6969
country: {
7070
type: 'string',
7171
choices: [
72-
{label: '🇦🇺 Australia', value: 'au'},
73-
{label: '🇮🇳 India', value: 'in'},
74-
{label: '🇬🇧 United Kingdom', value: 'gb'},
75-
{label: '🇺🇸 United States', value: 'us'},
72+
{title: '🇦🇺 Australia', value: 'au'},
73+
{title: '🇮🇳 India', value: 'in'},
74+
{title: '🇬🇧 United Kingdom', value: 'gb'},
75+
{title: '🇺🇸 United States', value: 'us'},
7676
]
7777
}
7878
}
@@ -111,17 +111,17 @@ const DEMOS = [
111111
title: 'Are you sure?',
112112
widget: 'radio',
113113
choices: [
114-
{label: 'Yes', value: true},
115-
{label: 'No', value: false},
114+
{title: 'Yes', value: true},
115+
{title: 'No', value: false},
116116
]
117117
},
118118
isActive3: {
119119
type: 'boolean',
120120
title: 'Really?',
121121
widget: 'select',
122122
choices: [
123-
{label: 'Yes', value: true},
124-
{label: 'No', value: false},
123+
{title: 'Yes', value: true},
124+
{title: 'No', value: false},
125125
]
126126
},
127127
}

‎docs/static/js/playground.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)