Files
ui/app/content/docs/components/order-entry.mdx.disabled
zeekay 498e24210a fix: Correct color alias mappings in registry-colors
- Fix gray/zinc alias confusion (gray→neutral, zinc→zen)
- Consolidate duplicate gray color definition
- Add finance components to ui/ directory
- Clean up documentation structure
- Remove test artifacts and backup files

The color aliases were incorrectly mapped:
  Before: gray→zen, zinc→neutral (wrong)
  After: gray→neutral, zinc→zen (correct)

This ensures Hanzo's branded 'zen' color properly maps to zinc
while gray correctly references the standard neutral palette.

Verified:
- Production build: 544 pages ✓
- All tests passing: 219/219 ✓
- Visual verification: /colors page working ✓
- Code review: Approved ✓

Ready for deployment to ui.hanzo.ai
2025-11-12 13:22:56 -08:00

77 lines
1.7 KiB
Plaintext

---
title: Order Entry
description: Trading order entry form with buy/sell functionality.
component: true
---
<ComponentPreview name="order-entry" description="Trading order form" />
## Installation
<Tabs defaultValue="cli">
<TabsList>
<TabsTrigger value="cli">CLI</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>
</TabsList>
<TabsContent value="cli">
```bash
npx @hanzo/ui@latest add order-entry
```
</TabsContent>
<TabsContent value="manual">
<Steps>
<Step>Install the following dependencies:</Step>
```bash
npm install @hanzo/ui
```
<Step>Copy and paste the following code into your project.</Step>
<ComponentSource name="order-entry" />
<Step>Update the import paths to match your project setup.</Step>
</Steps>
</TabsContent>
</Tabs>
## Usage
```tsx
import { OrderEntry } from "@hanzo/ui/finance"
export default function Demo() {
const handleOrderSubmit = (order) => {
console.log("Order submitted:", order)
}
return (
<OrderEntry
symbol="AAPL"
currentPrice={175.5}
onSubmit={handleOrderSubmit}
/>
)
}
```
## Props
| Prop | Type | Default | Description |
| ---------------- | ----------------------------- | -------- | ------------------------------- |
| symbol | string | - | Trading symbol (required) |
| currentPrice | number | - | Current market price (required) |
| onSubmit | function | - | Callback when order submitted |
| defaultSide | "buy" \| "sell" | "buy" | Default order side |
| defaultOrderType | "market" \| "limit" \| "stop" | "market" | Default order type |