Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MitchLillie committed Oct 13, 2023
1 parent 059caa9 commit 0a8b378
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .changeset/heavy-rules-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@shopify/ui-extensions': patch
'@shopify/ui-extensions-react': patch
---

Add ChoiceList to admin
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ render('Playground', () => <App />);
function App() {
return (
<ChoiceList
title="Company name"
name="Company name"
choices={[
{label: 'Hidden', value: 'hidden'},
{label: 'Optional', value: 'optional'},
{label: 'Required', value: 'required'},
{label: 'Hidden', id: '1'},
{label: 'Optional', id: '2'},
{label: 'Required', id: '3'},
]}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ export default extension(
const blockStack = root.createComponent(
ChoiceList,
{
title: 'Company name',
name: 'Company name',
choices: [
{label: 'Hidden', value: 'hidden'},
{label: 'Optional', value: 'optional'},
{label: 'Required', value: 'required'},
{label: 'Hidden', id: '1'},
{label: 'Optional', id: '2'},
{label: 'Required', id: '3'},
]
},
);
Expand Down

0 comments on commit 0a8b378

Please sign in to comment.