DocsComponentsLaravel Components

Laravel Components

TailAdmin Laravel provides a set of fully responsive Blade components to streamline your development process. These components are built with flexibility in mind, allowing you to customize them to fit your project’s needs while maintaining performance and usability.

You can use these components using the standard Blade component syntax:

<x-ui.component-name />

Here are a few examples of the components:

Alert

Alerts are used to provide feedback messages to users.

Preview


Props


Prop

Type

Description

Default

variant

“success” | “error” | “warning” | “info”

Specifies the type of alert. Determines styles and icon.

”info”
titlestring

The main title of the alert.

""
messagestring

The detailed message of the alert.

""
showLinkboolean

Whether to display the “Learn More” link.

false
linkHrefstring

The URL the “Learn More” link points to.

”#“
linkTextstring

The text displayed for the “Learn More” link.

”Learn more”

Badge

Badges are used to display small status indicators, counts, or labels.

Preview


Props


Prop

Type

Default

Description

variant”light” | “solid""light”

Visual style of the badge

size”sm” | “md""md”Size of the badge
color

“primary” | “success” | “error” | “warning” | “info” | “light” | “dark"

"primary”Color of the badge

startIcon

html string-

Icon at the start of the badge

endIconhtml string-

Icon at the end of the badge

Button

Button are used to trigger actions, submit forms, or navigate within the application.

Preview


Props


Prop

Type

Default

Description

size

”sm” | “md""md”

Defines the button size. Options: "sm" or "md".

variant

“primary” | “outline"

"primary”

Button style variant. Options: "primary" or "outline".

startIcon

html string

Optional icon displayed before the button text.

endIcon

html string

Optional icon displayed after the button text.

disabled

booleanfalse

Disables the button and applies a “disabled” style.

className

string""

Additional custom classes for styling.

Card

Cards are used to display content and actions related to a single subject.

Preview


Props


Prop

Type

Default

Description

imagestringnull

URL of the image to display at the top of the card.

titlestringnull

The title of the card.

description

stringnull

The description text of the card.

Input

Input fields allow users to enter text, passwords, and other data.

Preview


Props


Prop

Type

Default

Description

labelstringnull

Label for the input field

namestringRequired

Name attribute for the input

typestring”text”

Input type (text, password, email, etc.)

placeholder

string""Placeholder text

required

booleanfalse

Whether the field is required

disabled

booleanfalse

Whether the field is disabled

Modals are used to display content in a layer above the app.

Preview


Props


Prop

Type

Default

Description

isOpen

booleanfalse

Whether the modal is open by default

showCloseButton

booleantrue

Whether to show the close button

Table

Tables are used to display data in a structured format.

Preview