Button/Button.tsx

reshaped · packages/reshaped/src/components/Button/Button.tsx · typescript · MIT
ui

Button.tsx from reshaped-ui/reshaped

// Source: https://github.com/reshaped-ui/reshaped | License: MIT | Copyright 2021 Reshaped
// Provided via justclaw.it.com; keep this notice with the code.
import { forwardRef } from "react";
import React from "react";
import { classNames } from "@reshaped/utilities";

import Actionable, { type ActionableRef } from "@/components/Actionable";
import Icon from "@/components/Icon";
import Loader from "@/components/Loader";
import { responsiveClassNames, responsivePropDependency } from "@/utilities/props";
import type * as T from "./Button.types";
import s from "./Button.module.css";

const Button = forwardRef<ActionableRef, T.Props>((props, ref) => {
	const {
		variant = "solid",
		color = "neutral",
		raised,
		highlighted,
		fullWidth,
		loading,
		loadingAriaLabel,
		disabled,
		type,
		h

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key