MiComponents/Documentation

Button

A versatile button component with multiple variants, sizes, and styles. Built with accessibility in mind.

Installation

npx micomponents-cli add button

Preview

Usage

Import

import { Button } from "@/components/ui/button";

Basic Usage

<Button variant="primary" size="md">
  Click Me
</Button>

Examples

Button Variants

Use different variant props to display different button styles: primary, secondary, tertiary, and more.

Button Sizes

Control button appearance with size prop (micro, xs, sm, md, lg, xl) for different occasions.

API Reference

PropTypeDefaultDescription
variantstringprimaryThe button color variant
sizemicro | xs | sm | md | lg | xlmdThe button size
stylebtnfilled | outlined | textfilledThe button style
disabledbooleanfalseDisables the button