Skip to content

How to customize add/remove buttons from AutoField array #1409

@chaabouni-mahdi-ps

Description

@chaabouni-mahdi-ps

I am new to uniforms,
i uses it with react 18, bootstrap 5 and simple-schema.
when using:

<AutoForm schema={schema} onSubmit={handleSubmit}>
<AutoField name="z"/>
...

with Z being specified with simpl-schema with type: array,
i get a grey buttons with "btn-secondary" css, one to add new array and the other to delete.
I was not able to customize them and still new to use useField and connectField.

Is there a way to customize them ?
Would love to know if there is more detailed documentation because "uniforms.tools/docs" feels very bare-boned and there is barely examples to work with.

Edit:
I am also getting in the console:
-Warning: ListAdd: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
-Warning: ListDel: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

Metadata

Metadata

Assignees

Labels

Type: QuestionQuestions and other discussions

Type

No type

Projects

Status

To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions