Comments (3)
Fixed when restarted ES Lint and TS server on VS code.
from ui.
Hmm can you share the component code? Are you trying to export the <TooltipProvider />
?
Note that we fixed this and it is now exported by default.
from ui.
It's a copy and paste from the docs, I'm getting the errors inside the component file:
import { forwardRef } from 'react';
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
import { cn } from '../utils/helpers';
const TooltipProvider = TooltipPrimitive.Provider;
const Tooltip = ({ ...props }) => <TooltipPrimitive.Root {...props} />;
Tooltip.displayName = TooltipPrimitive.Tooltip.displayName;
const TooltipTrigger = TooltipPrimitive.Trigger;
const TooltipContent = forwardRef<
React.ElementRef<typeof TooltipPrimitive.Content>,
React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>
>(({ className, sideOffset = 4, ...props }, ref) => (
<TooltipPrimitive.Content
ref={ref}
sideOffset={sideOffset}
className={cn(
'animate-in fade-in-50 data-[side=bottom]:slide-in-from-top-1 data-[side=top]:slide-in-from-bottom-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 z-50 overflow-hidden rounded-md border border-slate-100 bg-white px-3 py-1.5 text-sm text-slate-700 shadow-md dark:border-slate-800 dark:bg-slate-800 dark:text-slate-400',
className
)}
{...props}
/>
));
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
Across most components I'm getting these errors:
Unsafe assignment of an `any` value.eslint[@typescript-eslint/no-unsafe-assignment](https://typescript-eslint.io/rules/no-unsafe-assignment)
Unsafe member access .Content on an `any` value.eslint[@typescript-eslint/no-unsafe-member-access](https://typescript-eslint.io/rules/no-unsafe-member-access)
from ui.
Related Issues (20)
- [bug]: Switch Component Rendering Incorrectly HOT 2
- [bug]: Next.js intall instructions missing tailwind step HOT 5
- [bug]: App crashes when opening [tooltip chart] on mobile HOT 2
- [bug]: shadcn add EACCES: permission denied, scandir HOT 1
- [bug]: Incorrect Hook Import Path in Toast Component Example
- [bug]: vertical separator not rendering HOT 5
- Error when installing ShadCN using CLI (reopened from #2280 ) HOT 1
- [bug]: npx shadcn@latest add toast creating hooks folder outside components HOT 3
- [bug]: Installlation error HOT 3
- [bug]: Command Input Custom TailwindCSS Not Working HOT 1
- [bug]: Duplicate / in imports of the code in the blocks documentation
- [bug]: tailwind.config.ts malformed after installing components HOT 1
- [bug]: file type input choose file text has incorrect color in dark mode
- [bug]: `globals.css` contains default NextJS CSS variables that interfere with the theme HOT 2
- [bug]: During the installation getting error
- [feat]: Toggle sidebar
- [bug]: Is there a way to automatically close a Popover if it is not in viewport? HOT 1
- [feat]: a `shadcn@latest reset` command to re-install components HOT 1
- [feat]: Multi state Toggle button
- [bug]: unable to get local issuer certificate HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui.