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

Function TextRevealButton

src/showcase/components/button/TextRevealButton.tsx:1–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1const TextRevealButton = () => {
2 return (
3 <button className="group/button relative inline-flex h-7 w-7 items-center justify-center overflow-hidden rounded-full bg-red-500 font-medium text-white transition-all duration-300 hover:w-24">
4 <p className="inline-flex whitespace-nowrap text-xs opacity-0 transition-all duration-200 group-hover/button:-translate-x-2.5 group-hover/button:opacity-100">
5 Syntax UI
6 </p>
7 <div className="absolute right-1.5">
8 <svg
9 viewBox="0 0 15 15"
10 xmlns="http://www.w3.org/2000/svg"
11 className="h-4 w-4 fill-white"
12 >
13 <path d="M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z"></path>
14 </svg>
15 </div>
16 </button>
17 )
18}
19
20export default TextRevealButton

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected