mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-07 12:29:50 +08:00
feat: update quick search ui
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
import React from 'react';
|
||||
import React, { Dispatch, SetStateAction } from 'react';
|
||||
import { MiddleSearchIcon } from '@blocksuite/icons';
|
||||
import { StyledInput, StyledInputContent, StyledLabel } from './style';
|
||||
|
||||
const Input = () => {
|
||||
import { StyledInputContent, StyledLabel } from './style';
|
||||
import { Command } from 'cmdk';
|
||||
const Input = (props: {
|
||||
search: string;
|
||||
setSearch: Dispatch<SetStateAction<string>>;
|
||||
}) => {
|
||||
return (
|
||||
<StyledInputContent>
|
||||
<StyledLabel htmlFor="quickSearchInput">
|
||||
<StyledLabel htmlFor=":r5:">
|
||||
<MiddleSearchIcon />
|
||||
</StyledLabel>
|
||||
<StyledInput
|
||||
id="quickSearchInput"
|
||||
type="text"
|
||||
placeholder="Quick search..."
|
||||
<Command.Input
|
||||
value={props.search}
|
||||
onValueChange={props.setSearch}
|
||||
placeholder="Quick Search..."
|
||||
/>
|
||||
</StyledInputContent>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user