其实是很简单的一个东西,给父元素加上group,子元素加上group-hover:xxx,实际上你看一下解析出来的原生css,父元素是.group,子元素是.goup:hover,其实说白了就是父子组件用了用一个class选择器,那自然在鼠标放进父元素的范围的时候,就能触发子元素的hover 0 回复 Sunday 2022-06-06 14:59:30 你好 是的。
根据需要选择其他的功能插件,例如:Babel, Router, Vuex, CSS Pre-processors, Linter。
尝试删除类名开头和结尾的空格
尝试删除类名开头和结尾的空格
Tailwind CSS plugin to add some missing interaction state variants: checked, group-focus-within, group-active, group-visited, group-disabled, hocus (hover & focus), group-hocus, can-hover, and no-hover - benface/tailwindcss-interaction-variants
onHoverChange (isHovering: boolean) => void Handler that is called when the hover state changes. Layout Name Type Description slot string | null A slot name for the component. Slots allow the component to receive props from a parent component. An explicit null value indicates that the local...
(e: HoverEvent) => void Handler that is called when a hover interaction starts. onHoverEnd (e: HoverEvent) => void Handler that is called when a hover interaction ends. onHoverChange (isHovering: boolean) => void Handler that is called when the hover state changes. Layout Name Type De...
data-hover hover Boolean Whether or not the radio is hovered. data-autofocus autofocus Boolean Whether or not the autoFocus prop was set to true.Styled examples If you're interested in predesigned Tailwind CSS radio group examples using Headless UI, check out Tailwind UI— a collection of beauti...
Create Group ) } function CreateGrupBtn({ onCreateGroupClick }) { return ( Create Group ); } 28 changes: 18 additions & 10 deletions 28 src/components/Messeges.jsx
text-right border-b border-gray-200 cursor-pointer hover:bg-gray-100 hover:text-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-700 focus:text-blue-700 dark:border-gray-600 dark:hover:bg-gray-600 dark:hover:text-white dark:focus:ring-gray-500 dark:focus:text-white"> Settings ...