thunder-ui-test-app
v0.0.1
Published
Test consumer app for @thunder-source/thunder-ui
Readme
Thunder-UI Test Consumer App
This is a simple test application to verify that the @thunder-source/thunder-ui package works correctly when installed.
Purpose
- Test component imports and rendering
- Verify CSS styles are applied correctly
- Validate TypeScript type definitions
- Ensure "Go to Definition" works with declaration maps
Setup
Build the Thunder-UI library first:
cd .. pnpm run buildInstall dependencies:
cd test-consumer-app npm installRun the test app:
npm run devOpen in browser: Navigate to
http://localhost:3000
What's Tested
Components
- ✅ Button (default, secondary, destructive variants)
- ✅ InputField (text, email, password types)
- ✅ Card (layout component)
Features
- ✅ CSS import from
@thunder-source/thunder-ui/styles - ✅ Component import from
@thunder-source/thunder-ui - ✅ Tailwind CSS integration
- ✅ TypeScript type checking
- ✅ React 19 compatibility
Verification Checklist
- [ ] All components render without errors
- [ ] Styles are applied correctly (colors, spacing, etc.)
- [ ] TypeScript shows no errors
- [ ] "Go to Definition" navigates to Thunder-UI source files
- [ ] Hot reload works during development
- [ ] Build completes successfully (
npm run build)
Expected Behavior
The app should display:
- A heading "Thunder-UI Test App"
- Button component section with interactive buttons
- Input field section with email and password inputs
- A green success card indicating everything is working
If you see any errors or missing styles, there may be an issue with the Thunder-UI package configuration.
Troubleshooting
Components not rendering
- Ensure you built the Thunder-UI library (
pnpm run buildin parent directory) - Check that
dist/folder exists with compiled files
Styles not applied
- Verify
dist/styles.cssexists and has content (>1KB) - Check Tailwind config includes Thunder-UI dist folder
TypeScript errors
- Verify
.d.tsfiles exist indist/ - Check
node_modules/@thunder-source/thunder-uiis linked correctly
"Go to Definition" not working
- Ensure
.d.ts.mapfiles are generated indist/ - Check that
declarationMap: trueis set intsconfig.build.json
