Button

Description

The Button component is a versatile and customizable button element that supports various styles (variants) and sizes. It provides consistent styling using class-variance-authority (cva) and follows best practices for accessibility and usability.

Usage


import { Button } from "mogora-ui"

export default function ButtonDemo() {
  return (
    <Button variant={"primary"}>Button</Button>
  )
}

Variants

Variants

API Reference

Props

PropTypeDescription
variant"clicki" | "danger" | "gost" | "info" | "link" | "outline" | "primary" | "secondary" | "shadow" | "success" | "warning"Defines the visual style of the button.
size"large" | "normal" | "small"Defines the size of the button.
childrenReactNodeThe content inside the button.
classNamestringAdditional custom classes.
...propsButtonHTMLAttributes<HTMLButtonElement>Accepts standard button attributes.