GitHub

Button

Displays a button or a component that looks like a button with neobrutalism design.

Installation#

Usage#

import { Button } from "~/components/ui/button";
<Button>Button</Button>

You can use the as prop to make another component look like a button. Here’s an example of a link that looks like a button:

import { CustomLink } from "~/components/custom-link";
import { Button } from "~/components/ui/button";
export function LinkAsButton() {
return (
<div>
<Button
as="a"
href="https://github.com/pekochan069/solid-ui-neobrutalism"
>
Go to GitHub
</Button>
<Button
as={CustomLink}
href="https://github.com/pekochan069/solid-ui-neobrutalism"
customProp="customValue"
>
Custom Link Button
</Button>
</div>
);
}