deno.land / x / jotai@v1.8.4 / website / src / components / search-button.js

search-button.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { useSetAtom } from 'jotai';import { searchAtom } from '../atoms';import { Button } from '../components';
export const SearchButton = (props) => { const setIsSearchOpen = useSetAtom(searchAtom);
return ( <Button onClick={() => setIsSearchOpen(true)} icon="search" dark {...props}> Search... </Button> );};
jotai

Version Info

Tagged at
2 years ago