import{n as e}from"./chunk-BneVvdWh.js";import{t}from"./jsx-runtime-C2wGStra.js";import{l as n,o as r}from"./iframe-D-oZzXNK.js";import{r as i}from"./react-B8jdHdWa.js";import{t as a}from"./mdx-react-shim-8vvjMMnP.js";function o(e){let t={code:`code`,h1:`h1`,p:`p`,pre:`pre`,strong:`strong`,...i(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(r,{title:`Guides/Custom Components/StyledComponents/Hover`}),`
`,(0,c.jsx)(t.h1,{id:`styledcomponents-hover`,children:`StyledComponents: Hover`}),`
`,(0,c.jsxs)(t.p,{children:[`Import `,(0,c.jsx)(t.code,{children:`onHover(content: string)`}),` from `,(0,c.jsx)(t.code,{children:`@preply/ds-web-core`}),` and use the mixin to show hover only for `,(0,c.jsx)(t.strong,{children:`Desktops with mouse`}),`:`]}),`
`,(0,c.jsx)(t.pre,{children:(0,c.jsx)(t.code,{className:`language-ts`,children:`import styled from 'styled-components';
import { onHover } from '@preply/ds-web-core';

export const MyComponent = styled.div\`
    background: lightblue;

    \${onHover(\`
        background: lightpink;
    \`)}
\`;
`})})]})}function s(e={}){let{wrapper:t}={...i(),...e.components};return t?(0,c.jsx)(t,{...e,children:(0,c.jsx)(o,{...e})}):o(e)}var c;e((()=>{c=t(),a(),n()}))();export{s as default};