@@ -367,25 +300,6 @@ function MyComponent() {
}
```
-## TypeScript Support
-
-Full TypeScript definitions included:
-
-```tsx
-import {
- AbacusReact,
- AbacusConfig,
- BeadConfig,
- BeadClickEvent,
- AbacusCustomStyles,
- AbacusOverlay,
- AbacusCallbacks,
- useAbacusDimensions
-} from '@soroban/abacus-react';
-
-// All interfaces fully typed for excellent developer experience
-```
-
## Educational Use Cases
### Interactive Math Lessons
@@ -399,30 +313,17 @@ function MathLesson() {
Add {problem.a} + {problem.b}
- {step === 'show-first' && (
-
This represents {problem.a}
- }]}
- />
- )}
-
- {step === 'add-second' && (
-
{
- if (value === problem.a + problem.b) {
- celebrate();
- }
+ {
+ if (value === problem.a + problem.b) {
+ celebrate();
}
- }}
- />
- )}
+ }
+ }}
+ />
);
}
@@ -455,10 +356,29 @@ function AbacusQuiz() {
}
```
+## TypeScript Support
+
+Full TypeScript definitions included:
+
+```tsx
+import {
+ AbacusReact,
+ AbacusConfig,
+ BeadConfig,
+ BeadClickEvent,
+ AbacusCustomStyles,
+ AbacusOverlay,
+ AbacusCallbacks,
+ useAbacusDimensions
+} from '@soroban/abacus-react';
+
+// All interfaces fully typed for excellent developer experience
+```
+
## Contributing
Contributions welcome! Please see our contributing guidelines and feel free to submit issues or pull requests.
## License
-MIT License - see LICENSE file for details.
\ No newline at end of file
+MIT License - see LICENSE file for details.
diff --git a/packages/abacus-react/examples/README.md b/packages/abacus-react/examples/README.md
new file mode 100644
index 00000000..b703f596
--- /dev/null
+++ b/packages/abacus-react/examples/README.md
@@ -0,0 +1,29 @@
+# AbacusReact Examples
+
+Generated SVG examples demonstrating various features of the AbacusReact component.
+
+## Files
+
+- **basic-usage.svg** - Simple abacus showing a number
+- **interactive.svg** - Clickable abacus with animations
+- **custom-styling.svg** - Personalized colors and highlights
+- **tutorial-mode.svg** - Educational guidance with tooltips
+
+## Usage in Documentation
+
+These SVG files can be embedded directly in markdown:
+
+```markdown
+
+```
+
+Or referenced in HTML:
+
+```html
+