Text Field
Text Field
Single-line text input with CJK IME composition support in a vertical interface.
$ npx verticallyworks add text-fieldHow does a text input compose CJK characters in a vertical context, and where does the IME candidate window appear?
DecisionCJK input requires IME composition · an intermediate state where the candidate characters are shown before confirmation. Where the candidate window lands in a vertical context is still unsolved.
Default
The input itself stays horizontal · CJK IME composition requires a horizontal baseline.
Type Korean, Japanese, or Chinese above. The field is horizontal (IME needs it); the resulting content flows vertically where it lives in the reader.
Source
The exact file npx verticallyworks add text-field copies into your project · yours to edit. Styling comes entirely from the design tokens.
Guidance
- Set lang attribute to match content language for IME accuracy
- Keep input field horizontal even in vertical layouts · rotating input is disorienting
- Show placeholder text in the target language
- Apply writing-mode: vertical-rl to the input element itself
- Assume the IME candidate window won't obscure your vertical content
- Use a single text field for multi-line vertical prose
Accessibility
label element required. aria-describedby for error messages. autocomplete attribute appropriate to context.
Where does the IME candidate window appear in a vertical layout? Platform IME APIs rarely expose enough control to reposition it.