<?php

namespace App\View\Components;

use Illuminate\View\Component;

class Button extends Component
{
    public $variant;
    public $size;
    public $icon;
    public $type;
    public $href;

    public function __construct(
        $variant = 'primary',
        $size = 'md',
        $icon = null,
        $type = 'button',
        $href = null
    ) {
        $this->variant = $variant;
        $this->size = $size;
        $this->icon = $icon;
        $this->type = $type;
        $this->href = $href;
    }

    public function render()
    {
        return view('components.button');
    }
}
