Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooks docs and typings #881

Closed
amje opened this issue Aug 9, 2023 · 4 comments · Fixed by #1091
Closed

Hooks docs and typings #881

amje opened this issue Aug 9, 2023 · 4 comments · Fixed by #1091
Assignees

Comments

@amje
Copy link
Contributor

amje commented Aug 9, 2023

Each exported hook must have a README file and follow this template:

// hooks/useMyHookName.ts

export interface MyHookNameProps {}

export interface MyHookNameResult {}

export function useMyHookName(props: MyHookNameProps): MyHookNameResult {}
// index.ts

// ...
export * from './hooks/useMyHookName';
// ...
@NikitaCG
Copy link
Contributor

Сall me when we start

@NikitaCG NikitaCG linked a pull request Oct 2, 2023 that will close this issue
@NikitaCG
Copy link
Contributor

NikitaCG commented Oct 3, 2023

I suggest attaching PR in the comments, since there will be more than one of them before the issue closes
useOutsideClick

@NikitaCG
Copy link
Contributor

NikitaCG commented Oct 3, 2023

PR with next hooks:

  • useBodyScrollLock
  • useVirtualElementRef
  • usePortalContainer

@NikitaCG NikitaCG linked a pull request Nov 3, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants