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

Add custom options to UseFocusTrap component #2320

Closed
4 tasks done
DenysPoliarush opened this issue Oct 13, 2022 · 1 comment
Closed
4 tasks done

Add custom options to UseFocusTrap component #2320

DenysPoliarush opened this issue Oct 13, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@DenysPoliarush
Copy link

Clear and concise description of the problem

Focus-trap has many options for customization. It would be great if you could give users the opportunity to use them.

Suggested solution

I think there is not much work, you just need to add props options here

trap = createFocusTrap(el, {})

Like this trap = createFocusTrap(el, props.options)

Alternative

No response

Additional context

No response

Validations

@stale
Copy link

stale bot commented Dec 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 12, 2022
@stale stale bot closed this as completed Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant