Documentation

Amount extends Component

Amount Laravel Blade Component

A currency amount input component with a prefixed currency icon. Supports multiple currencies including rupee, dollar, euro, and pound. Features customizable labels, hints, and placeholder text for enhanced user experience.

Features:

  • Currency icon prefix based on selected currency
  • Customizable labels and hints
  • Right-aligned input for better readability
  • Form validation integration
  • Livewire real-time updates
  • Bulma CSS framework integration
  • Mobile-friendly responsive design
Tags
author

V360

version
1.0.0
since
2024-06-20
example

Table of Contents

$class  : string
$hint  : string|null
$icon  : string
$id  : string
$label  : string|null
$name  : string
$placeholder  : string|null
$value  : string|null
__construct()  : mixed
Create a new component instance
render()  : View|string
Get the view / contents that represent the component.

Properties

$hint

public string|null $hint = null

$label

public string|null $label = null

$placeholder

public string|null $placeholder = null

$value

public string|null $value = null

Methods

__construct()

Create a new component instance

public __construct(string $name[, string $currency = "rupee" ][, string|null $value = null ][, string|null $id = null ][, mixed $label = null ][, string|null $placeholder = null ][, string|null $classes = null ][, string|null $hint = null ]) : mixed
Parameters
$name : string
$currency : string = "rupee"
  • rupee | dollar | euro | pound
$value : string|null = null
$id : string|null = null
$label : mixed = null
$placeholder : string|null = null
$classes : string|null = null
$hint : string|null = null
Return values
mixed

render()

Get the view / contents that represent the component.

public render() : View|string
Return values
View|string

Search results