A controlled text field for a Canton party id.
It flags a malformed value with aria-invalid and hands the reason to onChange. Pass aria-invalid to flag the field for a reason the kit cannot know, such as a party the app rejects.
aria-invalid
onChange
<PartyIdInput value={receiver} onChange={setReceiver} aria-describedby="receiver-error" /> Copy
<PartyIdInput value={receiver} onChange={setReceiver} aria-describedby="receiver-error" />
anatomy.ts for the part classes and state attributes the theme selects.
A controlled text field for a Canton party id.
It flags a malformed value with
aria-invalidand hands the reason toonChange. Passaria-invalidto flag the field for a reason the kit cannot know, such as a party the app rejects.