Skip to content

Commit

Permalink
feat: add uppercase decorator story
Browse files Browse the repository at this point in the history
  • Loading branch information
florianstancioiu committed May 7, 2024
1 parent b8c6ea6 commit 461e947
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions stories/cosmoz-autocomplete.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,22 @@ Contour.parameters = {
},
},
};

export const UppercaseDecorator = {
args: {
label: 'Choose color',
source: colors,
textProperty: 'text',
value: [colors[0], colors[3]],
},
decorators: [
(story) => html`<div style="text-transform: uppercase">${story()}</div>`,
],
parameters: {
docs: {
description: {
story: 'The uppercase decorator version',
},
},
},
};

0 comments on commit 461e947

Please sign in to comment.