web-llm-embed / src /components /DashButton.tsx
matt HOFFNER
handle file embedding
e82c85b
raw
history blame
521 Bytes
import React from 'react';
import { MouseEventHandler, ReactElement } from 'react';
interface Props {
handleClick: MouseEventHandler<HTMLButtonElement>;
children: ReactElement;
}
const DashButton = ({ handleClick, children }: Props) => {
return (
<button
className="border-dashed border-2 border-black rounded-lg py-2 px-4 text-black hover:bg-black hover:text-white transition-all duration-300 ease-in-out"
onClick={handleClick}
>
{children}
</button>
);
};
export { DashButton };