-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat(tooltip): add TooltipWithToggleDemo component to registry (#5)
📚 docs(tooltip): add documentation for TooltipWithToggleDemo component
- Loading branch information
Showing
5 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
apps/web/registry/default/example/tooltip-with-toggle-demo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Heart } from 'lucide-react' | ||
|
||
import { Toggle } from '~/registry/default/ui/toggle' | ||
import { | ||
Tooltip, | ||
TooltipContent, | ||
TooltipProvider, | ||
TooltipTrigger, | ||
} from '~/registry/default/ui/tooltip' | ||
|
||
export default function TooltipWithToggleDemo() { | ||
return ( | ||
<TooltipProvider> | ||
<Tooltip> | ||
<TooltipTrigger> | ||
<Toggle variant="outline" aria-label="Toggle love"> | ||
<Heart className="h-4 w-4" /> | ||
</Toggle> | ||
</TooltipTrigger> | ||
<TooltipContent> | ||
<p>Heart</p> | ||
</TooltipContent> | ||
</Tooltip> | ||
</TooltipProvider> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
apps/web/registry/miami/example/tooltip-with-toggle-demo.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Heart } from 'lucide-react' | ||
|
||
import { Toggle } from '~/registry/miami/ui/toggle' | ||
import { | ||
Tooltip, | ||
TooltipContent, | ||
TooltipProvider, | ||
TooltipTrigger, | ||
} from '~/registry/miami/ui/tooltip' | ||
|
||
export default function TooltipWithToggleDemo() { | ||
return ( | ||
<TooltipProvider> | ||
<Tooltip> | ||
<TooltipTrigger> | ||
<Toggle variant="outline" aria-label="Toggle Heart"> | ||
<Heart className="h-4 w-4" /> | ||
</Toggle> | ||
</TooltipTrigger> | ||
<TooltipContent><p>Heart</p></TooltipContent> | ||
</Tooltip> | ||
</TooltipProvider> | ||
) | ||
} |
8e416bb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nyxb-ui – ./
nyxb-ui-git-main-joypix.vercel.app
nyxb-ui.vercel.app
nyxb-ui-joypix.vercel.app
nyxbui.design
www.nyxbui.design