This project and the components are written in TypeScript. We recommend using TypeScript for your project as well. However we provide a JavaScript version of the components as well. The JavaScript version is available via the CLI.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/shadcn-ui/ui/llms.txt
Use this file to discover all available pages before exploring further.
Configuration
To opt-out of TypeScript, you can use thetsx flag in your components.json file.
components.json
Setting up import aliases
To configure import aliases, you can use the followingjsconfig.json:
jsconfig.json
Adding components
Once you have settsx: false in your components.json file, the CLI will automatically add components in JavaScript format.
While JavaScript is supported, we strongly recommend using TypeScript for better type safety and developer experience.