MCPcopy Create free account
hub / github.com/BuilderIO/framework-benchmarks / Button

Function Button

frameworks/fresh/components/Button.tsx:6–14  ·  view source on GitHub ↗
(props: h.JSX.HTMLAttributes<HTMLButtonElement>)

Source from the content-addressed store, hash-verified

4import { tw } from "@twind";
5
6export function Button(props: h.JSX.HTMLAttributes<HTMLButtonElement>) {
7 return (
8 <button
9 {...props}
10 disabled={!IS_BROWSER || props.disabled}
11 class={tw`px-2 py-1 border(gray-100 2) hover:bg-gray-200`}
12 />
13 );
14}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected