refactor: migrate disclosure & combobox from reach-ui (#2316)

This commit is contained in:
Aman Harwara
2023-04-21 22:56:09 +05:30
committed by GitHub
parent bf294eccd4
commit c02c45b916
13 changed files with 171 additions and 362 deletions

View File

@@ -15,14 +15,14 @@ const AccordionItem: FunctionComponent<Props> = ({ title, className = '', childr
return (
<div className={className}>
<div
className={'relative flex cursor-pointer hover:underline'}
className="relative flex cursor-pointer items-center justify-between hover:underline"
onClick={() => {
setIsExpanded(!isExpanded)
}}
>
<Title>{title}</Title>
<ArrowDownCheckmarkIcon
className={'sn-accordion-arrow-icon absolute right-0'}
className="sn-accordion-arrow-icon"
width={20}
height={20}
data-is-expanded={isExpanded}