Skip to content

The Open Standard for Generative UI

init react-ui

abhishek616b4eb659d5
diff --git a/frontend-sdk/packages/react-ui/eslint.cjs b/frontend-sdk/packages/react-ui/eslint.cjs
new file mode 100644
index 000000000..2fc6818c8
--- /dev/null
+++ b/frontend-sdk/packages/react-ui/eslint.cjs
@@ -0,0 +1,4 @@
+/** @type {import("eslint").ESLint.ConfigData} */
+module.exports = {
+ extends: ["../../eslint.cjs"]
+};
\ No newline at end of file
diff --git a/frontend-sdk/packages/react-ui/package.json b/frontend-sdk/packages/react-ui/package.json
new file mode 100644
index 000000000..4934cac81
--- /dev/null
+++ b/frontend-sdk/packages/react-ui/package.json
@@ -0,0 +1,36 @@
+{
+ "name": "@clay/react-core",
+ "version": "1.0.0",
+ "description": "",
+ "main": "index.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "build": "tsc -p .",
+ "lint": "eslint src --ext .ts,.tsx",
+ "format": "prettier --write src",
+ "prepare": "pnpm run build"
+ },
+ "peerDependencies": {
+ "ai": "^4.0.3",
+ "react": "19.0.0-rc-66855b96-20241106",
+ "react-dom": "19.0.0-rc-66855b96-20241106",
+ "tailwind-merge": "^2.5.4",
+ "tailwindcss-animate": "^1.0.7",
+ "tiny-invariant": "^1.3.3",
+ "zustand": "^5.0.2"
+ },
+ "devDependencies": {
+ "@types/react": "^19.0.2",
+ "@typescript-eslint/eslint-plugin": "^8.18.0",
+ "eslint": "^9.17.0",
+ "eslint-config-prettier": "^9.1.0",
+ "eslint-plugin-prettier": "^5.2.1",
+ "eslint-plugin-react-hooks": "^5.1.0",
+ "eslint-plugin-react-refresh": "^0.4.16",
+ "eslint-plugin-unused-imports": "^3.1.0",
+ "prettier-plugin-organize-imports": "^3.2.4"
+ },
+ "keywords": [],
+ "author": "",
+ "license": "ISC"
+}
diff --git a/frontend-sdk/packages/react-ui/src/index.ts b/frontend-sdk/packages/react-ui/src/index.ts
new file mode 100644
index 000000000..e69de29bb
diff --git a/frontend-sdk/packages/react-ui/tsconfig.json b/frontend-sdk/packages/react-ui/tsconfig.json
new file mode 100644
index 000000000..810dad2d3
--- /dev/null
+++ b/frontend-sdk/packages/react-ui/tsconfig.json
@@ -0,0 +1,8 @@
+{
+ "$schema": "https://json.schemastore.org/tsconfig",
+ "extends": "../../tsconfig.json",
+ "compilerOptions": {
+ "outDir": "./dist",
+ "rootDir": "./src"
+ }
+}