storybook-addon-pseudo-states
storybook-addon-pseudo-states copied to clipboard
[Feature request] Add a "disabled" state
I don't know if this qualifies as a pseudo state, but it would be great to see what an element looks like disabled (namely buttons).
Pretty sure it is a pseudo class: https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-classes Hope to see it in the future
If I am not wrong, we can easily get the disabled
state on a story by using <button disabled>Button</button>
The pseudo classes that were already added needed some events to happen externally like mouse hover for hover
& tabbing for focus
@navin-moorthy but then we have no choice but having two different stories for regular state and disabled one...