Sorry, but you either have no stories or none are selected somehow.
If the problem persists, check the browser console, or the terminal you've run Storybook from.
You can pass css events to all design system components like:
This example running (try hover):
States and breakpoints can be seemlessly mixed, every screens defined in theme are a @media (min-width: ...)
state.
Default theme includes a set of useful states.
State Prefix | CSS Scope |
---|---|
motionSafe | @media (prefers-reduced-motion: no-preference) |
motionReduce | @media (prefers-reduced-motion: reduce) |
first | &:first-child |
last | &:last-child |
odd | &:odd |
even | &:even |
visited | &:visited |
checked | &:checked |
hover | &:hover |
focus | &:focus |
focusVisible | &:focus-visible |
focusWithin | &:focus-within |
active | &:active |
disabled | &:disabled, &[aria-disabled=true] |
placeholder | &::placeholder |
You can completely customize states in your theme:
See the full docs for this feature here.