diff --git a/packages/tailwindcss/package.json b/packages/tailwindcss/package.json index 8605d479..1d31bf76 100644 --- a/packages/tailwindcss/package.json +++ b/packages/tailwindcss/package.json @@ -31,6 +31,7 @@ "@storybook/addon-essentials": "^6.3.2", "@storybook/addon-links": "^6.3.2", "@storybook/addon-postcss": "^2.0.0", + "@storybook/client-api": "^6.3.7", "@storybook/html": "^6.3.2", "autoprefixer": "^10.3.2", "babel-loader": "^8.2.2", diff --git a/packages/tailwindcss/stories/Input.stories.js b/packages/tailwindcss/stories/Input.stories.js index 7e9d586e..954c88ab 100644 --- a/packages/tailwindcss/stories/Input.stories.js +++ b/packages/tailwindcss/stories/Input.stories.js @@ -1,3 +1,5 @@ +import { useEffect } from "@storybook/client-api"; + export default { title: "Forms/Input", }; @@ -53,14 +55,15 @@ const RadioTemplate = () => { export const Radio = RadioTemplate.bind({}); const CheckboxTemplate = () => { + useEffect(() => { + document.querySelector("#checkbox input:nth-child(3)").indeterminate = true; + }); return ` +
- - - + +
`; }; export const Checkbox = CheckboxTemplate.bind({}); diff --git a/yarn.lock b/yarn.lock index abb3f142..9963144b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2512,7 +2512,7 @@ ts-dedent "^2.0.0" util-deprecate "^1.0.2" -"@storybook/client-api@6.3.7": +"@storybook/client-api@6.3.7", "@storybook/client-api@^6.3.7": version "6.3.7" resolved "https://registry.yarnpkg.com/@storybook/client-api/-/client-api-6.3.7.tgz#cb1dca05467d777bd09aadbbdd1dd22ca537ce14" integrity sha512-8wOH19cMIwIIYhZy5O5Wl8JT1QOL5kNuamp9GPmg5ff4DtnG+/uUslskRvsnKyjPvl+WbIlZtBVWBiawVdd/yQ==