Skip to content

Commit

Permalink
Merge pull request #1219 from otutukingsley/ic-select-with-multi-code…
Browse files Browse the repository at this point in the history
…-example-fix

fix(root): add options array to code example
  • Loading branch information
GCHQ-Developer-847 authored Dec 4, 2024
2 parents 327fb20 + fee1de5 commit 907aa90
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/content/structured/components/multi-select/code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,15 @@ return (
},
});
const classes = useStyles();
const options = [
{ label: "Cappuccino", value: "Cap" },
{ label: "Latte", value: "Lat" },
{ label: "Americano", value: "Ame" },
{ label: "Filter", value: "Fil" },
{ label: "Flat white", value: "Fla" },
{ label: "Mocha", value: "Moc" },
{ label: "Macchiato", value: "Mac" },
];
return (
<div className={classes.parentContainer}>
{shortCode}
Expand Down

0 comments on commit 907aa90

Please sign in to comment.