Description
DataContext.SubmitButton
connects to the DataContext.Context to submit the active state of the DataContext, triggering onSubmit
.
Demos
Standard text
<DataContext.Context.Providervalue={{...defaultContextState,handleSubmit: () => console.log('handleSubmit'),}}><DataContext.SubmitButton /></DataContext.Context.Provider>
Properties
Property | Type | Description |
---|---|---|
children | React.Node | (required) Button text. |
data-testid | string | (required) Test ID. |