headlessui 썸네일형 리스트형 @headlessui/react Uncaught Error: Passing props on "Fragment"! 에러 원인 라이브러리 버전 (@headlessui/react)"@headlessui/react": "^1.7.19", 에러메시지Uncaught Error: Passing props on "Fragment"!The current component is rendering a "Fragment".However we need to passthrough the following props: - style - refYou can apply a few solutions: - Add an as="..." prop, to ensure that we render an actual element instead of a "Fragment". - Render a single element as the child so that w.. 더보기 Headless UI 사용 방법 - Listbox를 이용해 간단하게 드롭다운 구현하기 https://headlessui.com/react/listbox Headless UICompletely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.headlessui.comHeadless UI란? Headless는 디자인 없이 기능만 제공해주는 라이브러리디자인이 없기때문에 라이브러리 자체 디자인을 초기화하는 시간과 노력을 줄일수 있다. 적용 예시import {Listbox} from "@headlessui/react";import React, {Fragment, useState} from 'react'; {({open}) => ( .. 더보기 이전 1 다음