composer require talalalmrka/fgx
To publish the configuration file, run:
php artisan vendor:publish --tag=fgx-config
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.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.url is not provided, the breadcrumb will be rendered as plain text.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.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.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.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.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.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.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
php artisan config:clear
php artisan config:cache
php artisan view:clear
To run the tests, use:
vendor/bin/phpunit
This project is licensed under the MIT License.
How can I help you explore Laravel packages today?