Components
Renders its children as button content and works with both href and onClick. Supports solid, outline, ghost and faded variants, neutral/primary/critical/positive colors, four sizes with fullWidth, loading and disabled states, start/end icons, icon-only mode, rounded shape, raised elevation and a Button.Group compound component.
npx @21st-dev/cli add reshaped/reshaped-buttonLoading preview...
import { Reshaped, View } from "reshaped/bundle";
import Button from "@/components/ui/reshaped-button";
export default function Demo() {
return (
<Reshaped theme="slate">
<div style={{ margin: "0 auto", padding: 24, display: "flex", justifyContent: "center" }}>
<View gap={3} direction="row" align="center">
<Button onClick={() => {}}>Solid button</Button>
<Button variant="outline" onClick={() => {}}>
Outline button
</Button>
<Button variant="ghost" onClick={() => {}}>
Ghost button
</Button>
</View>
</div>
</Reshaped>
);
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...