Skip to content

Commit

Permalink
feat: support autocomplete attribute for textbox component
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Aug 9, 2021
1 parent 2a1b0a0 commit edf2235
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/textbox/html.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import "./html.scss";
import README from "./README.md";

export const Template = ({
autoComplete = null,
type = "text",
value = "",
invalid = false,
Expand All @@ -24,12 +25,16 @@ export const Template = ({
`<div class="utrecht-html">
<input type="${type}" ${invalid ? ' aria-invalid="true"' : ""}${disabled ? " disabled" : ""}${
required ? " required" : ""
}${readOnly ? "readonly" : ""} value="${value}">
}${readOnly ? "readonly" : ""} value="${value}"${autoComplete ? ` autocomplete="${autoComplete}"` : ""}>
</div>`;

<Meta
title="HTML Component/Text Box"
argTypes={{
autoComplete: {
description: "Autocomplete type",
control: "text",
},
invalid: {
description: "Invalid",
control: "boolean",
Expand Down

0 comments on commit edf2235

Please sign in to comment.