Skip to content

Open search dialog from external #112

Open
@seonglae

Description

@seonglae

Feature Request: Change search state externally

I suggest a feature that externally changable searchOpen state
I guess, this file is implementing searhOpen state like this

  const [isSearchOpen, setIsSearchOpen] = React.useState(false)
  const onOpenSearch = React.useCallback(() => {
    setIsSearchOpen(true)
  }, [])

  const onCloseSearch = React.useCallback(() => {
    setIsSearchOpen(false)
  }, [])

I'm not sure how to make this feature as code, but I suggest some applicable functions by this feature

example functions

  • ctrl + p shortcut for activate search dialog like notion.so
  • Auto open search dialog modal when open landing page (what I want to do)

Thanks for this great project

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions