Skip to content

Commit

Permalink
fix: add readonly story
Browse files Browse the repository at this point in the history
  • Loading branch information
jnm2377 committed Feb 17, 2022
1 parent 4e51d58 commit 180ed53
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/react/src/components/TextInput/next/TextInput.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ export const TogglePasswordVisibility = () => {
);
};

export const ReadOnly = () => {
return (
<TextInput
labelText="Text input label"
helperText="Optional help text"
value="This is read only, you can't type more."
readOnly
/>
);
};

export const WithLayer = () => {
return (
<>
Expand Down

0 comments on commit 180ed53

Please sign in to comment.