Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
Search.tsx1.7 kB
"use client"; import { Button } from "@/components/ui/button"; import { CancelIcon } from "@/components/ui/icons/Cancel"; import { SearchIcon } from "@/components/ui/icons/Search"; import { Input } from "@/components/ui/input"; import { styled } from "@/styled-system/jsx"; import { Props, useSearch } from "./useSearch"; export function Search(props: Props) { const { form, data, handlers } = useSearch(props); return ( <styled.form display="flex" w="full" // onSubmit={handlers.handleSearch} action="/search" > <Input w="full" size="sm" borderRight="none" borderRightRadius="none" type="search" defaultValue={props.query} background="bg.default" placeholder={`Search...`} _focus={{ // NOTE: This disables the default focus behaviour styles for inputs. boxShadow: "none" as any, // TODO: Fix types at Park-UI or Panda level borderColor: "border.default", }} {...form.register("q")} /> {(props.query || data.q) && ( <Button size="sm" variant="outline" borderX="none" borderRadius="none" borderColor="border.default" type="reset" onClick={handlers.handleReset} > <CancelIcon /> </Button> )} <Button size="sm" variant="outline" flexShrink="0" borderLeft="none" borderLeftRadius="none" borderColor="border.default" type="submit" width="min" loading={data.isLoading} > <SearchIcon /> </Button> </styled.form> ); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Southclaws/storyden'

If you have feedback or need assistance with the MCP directory API, please join our Discord server