Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Fgx Laravel Package

talalalmrka/fgx

View on GitHub
Deep Wiki
Context7

Fgx UI Components

License

Table of Contents

Installation

composer require talalalmrka/fgx

Configuration

To publish the configuration file, run:

php artisan vendor:publish --tag=fgx-config

Usage

Components

Alert

The Alert component is used to display alert messages.

Usage:

<fgx:alert type="success" message="Operation completed successfully!" />

Available Props:

  • type (string): The type of alert. Possible values: success, error, warning, info. Default: info.
  • message (string): The message to display in the alert.

Breadcrumbs

The Breadcrumbs component is used to display a breadcrumb navigation.

Usage:

<fgx:breadcrumbs :links="[
    ['label' => 'Home', 'url' => '/'],
    ['label' => 'Dashboard', 'url' => '/dashboard'],
    ['label' => 'Settings']
]" />

Available Props:

  • links (array): An array of breadcrumb links. Each link should be an associative array with the following keys:
    • label (string): The text to display for the breadcrumb.
    • url (string): The URL for the breadcrumb. Optional for the last breadcrumb in the list.
  • If url is not provided, the breadcrumb will be rendered as plain text.

Badge

The Badge component is used to display small status indicators.

Usage:

<fgx:badge type="success">Active</fgx:badge>

Available Props:

  • type (string): The type of badge. Possible values: success, error, warning, info. Default: info.
  • text (string): The text to display inside the badge.

Button

The Button component is used to render buttons.

Usage:

<fgx:button type="submit" class="btn-primary">Submit</fgx:button>

Available Props:

  • type (string): The button type. Possible values: submit, button, reset. Default: button.
  • class (string): Additional CSS classes for styling the button.
  • disabled (boolean): Whether the button is disabled. Default: false.

Card

The Card component is used to display content within a card layout.

Usage:

<fgx:card title="Card Title">
    <p>This is the card content.</p>
</fgx:card>

Available Props:

  • title (string): The title of the card.
  • footer (string): The footer content of the card. Optional.

Dropdown

The Dropdown component is used to display dropdown menus.

Usage:

<fgx:dropdown label="Actions">
    <fgx:dropdown-item href="/edit">Edit</fgx:dropdown-item>
    <fgx:dropdown-item href="/delete">Delete</fgx:dropdown-item>
</fgx:dropdown>

Available Props:

  • label (string): The label for the dropdown.
  • items (array): An array of dropdown items. Optional.

Input

The Input component is used to render input fields.

Usage:

<fgx:input name="email" type="email" placeholder="Enter your email" />

Available Props:

  • name (string): The name attribute of the input field.
  • type (string): The type of the input field. Default: text.
  • placeholder (string): The placeholder text for the input field.
  • value (string): The default value of the input field. Optional.

Modal

The Modal component is used to display modal dialogs.

Usage:

<fgx:modal id="exampleModal" title="Modal Title">
    <p>This is the modal content.</p>
</fgx:modal>

Available Props:

  • id (string): The unique identifier for the modal.
  • title (string): The title of the modal.
  • size (string): The size of the modal. Possible values: sm, md, lg. Default: md.

Table

The Table component is used to display tabular data.

Usage:

<fgx:table :headers="['Name', 'Email', 'Role']" :rows="$users" />

Available Props:

  • headers (array): An array of column headers.
  • rows (array): An array of row data.

You can customize the components by publishing the views:

php artisan vendor:publish --tag=fgx-views

Updating caches

php artisan config:clear
php artisan config:cache
php artisan view:clear

Available Components

Testing

To run the tests, use:

vendor/bin/phpunit

License

This project is licensed under the MIT License.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle