[playground] Extract shared components (#16819)

## Summary
Extract components that can be shared with the Red Knot playground.

## Test Plan

`npm start`
This commit is contained in:
Micha Reiser 2025-03-18 08:43:47 +01:00 committed by GitHub
parent 433879d852
commit ded9c69888
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 230 additions and 222 deletions

View file

@ -0,0 +1,36 @@
import type { ButtonHTMLAttributes } from "react";
import classNames from "classnames";
export default function AstralButton({
className,
children,
...otherProps
}: ButtonHTMLAttributes<any>) {
return (
<button
className={classNames(
"uppercase",
"ease-in-out",
"font-heading",
"outline-radiate",
"transition-all duration-200",
"bg-radiate",
"text-black",
"hover:text-white",
"hover:bg-galaxy",
"outline-1",
"dark:outline",
"dark:hover:outline-white",
"rounded-md",
"tracking-[.08em]",
"text-sm",
"font-medium",
"enabled:hover:bg-galaxy",
className,
)}
{...otherProps}
>
{children}
</button>
);
}