CartNoteInput
Expandable text input for adding notes to a cart or order
Import
import { CartNoteInput } from '@tallyui/components';Usage
const [note, setNote] = useState('');
<CartNoteInput value={note} onChangeText={setNote} />Starts as a compact "Add note" link. Tapping it expands into a multiline text input. If the value already has content, the input starts expanded.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | required | Current note text |
onChangeText | (text: string) => void | required | Callback when text changes |
placeholder | string | 'Order note...' | Placeholder text for the input |
className | string | — | Override container styles |