MCPcopy Create free account
hub / github.com/SyntaxUI/syntaxui / LoadingIcon

Function LoadingIcon

src/components/Search.tsx:125–152  ·  view source on GitHub ↗
(props: React.ComponentPropsWithoutRef<'svg'>)

Source from the content-addressed store, hash-verified

123}
124
125function LoadingIcon(props: React.ComponentPropsWithoutRef<'svg'>) {
126 let id = useId()
127
128 return (
129 <svg viewBox="0 0 20 20" fill="none" aria-hidden="true" {...props}>
130 <circle cx="10" cy="10" r="5.5" strokeLinejoin="round" />
131 <path
132 stroke={`url(#${id})`}
133 strokeLinecap="round"
134 strokeLinejoin="round"
135 d="M15.5 10a5.5 5.5 0 1 0-5.5 5.5"
136 />
137 <defs>
138 <linearGradient
139 id={id}
140 x1="13"
141 x2="9.5"
142 y1="9"
143 y2="15"
144 gradientUnits="userSpaceOnUse"
145 >
146 <stop stopColor="currentColor" />
147 <stop offset="1" stopColor="currentColor" stopOpacity="0" />
148 </linearGradient>
149 </defs>
150 </svg>
151 )
152}
153
154function HighlightQuery({ text, query }: { text: string; query: string }) {
155 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected