curls
Version:
💪 Responsive, expressive UI primitives for React written with Style Hooks and Emotion
9 lines (8 loc) • 354 B
JavaScript
import {getHoverQuery} from '../utils'
export const getHoverClass = () => {
// adds css classes for hover and active states
const hoverStyle = '\n &:hover {\n opacity: 0.8;\n }\n '
const noneStyle = '\n &:hover {\n opacity: 1.0;\n }\n '
return getHoverQuery(hoverStyle, noneStyle)
}
export const getActiveClass = () => {}