mirror of
https://github.com/langgenius/dify.git
synced 2026-10-04 13:47:55 +08:00
refactor(ui): expose compound Infotip primitives and migrate consumers (#42681)
This commit is contained in:
94 files changed
+1329
-787
No files matched your search
+6
-3
@@ -1,7 +1,7 @@
|
||||
'use client'
|
||||
import { Checkbox } from '@langgenius/dify-ui/checkbox'
|
||||
import { cn } from '@langgenius/dify-ui/cn'
|
||||
import { Infotip } from '@/app/components/base/infotip'
|
||||
import { Infotip, InfotipContent, InfotipTrigger } from '@langgenius/dify-ui/infotip'
|
||||
|
||||
type CheckboxWithLabelProps = {
|
||||
className?: string
|
||||
@@ -35,8 +35,11 @@ export default function CheckboxWithLabel({
|
||||
</label>
|
||||
<div className="ml-1 flex min-w-0 items-center">
|
||||
{tooltip && (
|
||||
<Infotip aria-label={tooltip} popupClassName="w-[200px]">
|
||||
{tooltip}
|
||||
<Infotip>
|
||||
<InfotipTrigger aria-label={tooltip} />
|
||||
<InfotipContent aria-label={tooltip} className="w-[200px]">
|
||||
{tooltip}
|
||||
</InfotipContent>
|
||||
</Infotip>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user