[Feature] Allow passing custom props to button

Aperta
#136 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
react, typescript
Ambito
devtools, frontend

Direzione di ricerca

The issue does not name a file or test. Start by locating the React Hook Form devtools button and compare its props surface with the React Query example shown in the report. Done means callers can pass custom className and style values to reposition or restyle the button.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

feature request

With the react-query devtools I can pass in custom props to make adjustments to it. In particular, it's good to be able to pass a className or a custom style to override some defaults, like done here:

<ReactQueryDevtools
  position="bottom-left"
  toggleButtonProps={{
    className: 'noPrint',
    style: { transform: 'translateY(-3rem)' },
  }}
  panelProps={{
    className: 'noPrint',
  }}
/>

None of the placements of the react-hook-form devtools button work for me as there are fixed toolbars at the top and the bottom of our app. So I need to be able to pass in a transform to nudge it upwards, like I am able to with the react-query devtools.

Lingua principale
TypeScript
Stelle
670
Fork
55
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di react-hook-form/devtools

Tutte le issue di react-hook-form/devtools

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.