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

Tabler Bundle Laravel Package

kevinpapst/tabler-bundle

View on GitHub
Deep Wiki
Context7

Components

This theme ships some components (as twig macros) that hide the complexity of rendering the same elements over and over again with the correct HTML.

Button

There is one main button macro that has a bunch of possible options that you can pass in, it is the Swiss knife when it comes to buttons.

Please check the source code to see all available options, here are some demos:

{% from '[@Tabler](https://github.com/Tabler)/components/button.html.twig' import button %}

{{ button('save', {title : 'Save'|trans}) }}
{{ button('save', {title : 'Save'|trans}, false) }}
{{ button('save', {title : 'Save'|trans, label: '1'}) }}
{{ button('save', {title : 'Save'|trans}, 'success') }}
{{ button(false , {title : 'Save'|trans}) }}
{{ button(false , {title : 'Save'|trans}, 'link') }}
{{ button(false , {title : 'Save'|trans}, 'success') }}
{{ button('save', {title : 'Save'|trans, combined: true}, 'success') }}
{{ button('save', {title : 'Save'|trans, combined: true, label: 'test', labelColor: 'red'}, 'success') }}

Other buttons

There are some other button components for specialized situations (like a submit button, or an action button inside a card header) :

Submit buttons

{% from '[@Tabler](https://github.com/Tabler)/components/buttons.html.twig' import submit_button %}

{{ submit_button('save') }}

Action button

TODO

{% from '[@Tabler](https://github.com/Tabler)/components/buttons.html.twig' import action_button %}

{% macro action_button(label, action, icon, type, size) %}

Link button

TODO

{% from '[@Tabler](https://github.com/Tabler)/components/buttons.html.twig' import link_button %}

{% macro link_button(label, href, icon, type, size) %}

Collapse button

TODO

{% from '[@Tabler](https://github.com/Tabler)/components/buttons.html.twig' import action_collapsebutton %}

{% macro action_collapsebutton(label, target) %}

Card-Tool button

TODO

{% from '[@Tabler](https://github.com/Tabler)/components/buttons.html.twig' import action_cardtoolbutton %}

{% macro action_cardtoolbutton(icon, attrs) %}

Dropdown button

Parameters

Parameter Description Type Default
values Button object object {}
items Array of Item array []
options Options object object {}

Item

Parameter Description Type Default
icon Tabler icon name boolean false
title Title of the item html null
href Href of the item string #
class Custom class for dropdown item. Results in class like dropdown-item class string null
{% from '[@Tabler](https://github.com/Tabler)/components/buttons.html.twig' import dropdown_button %}

{{ dropdown_button(
    {icon: 'plus', title : 'Actions'},
    [
        {icon: 'plus',      title : 'Add more',     href : '/add'},
        {                   title : 'Help needed',  href : '/help'},
        {icon: 'delete',    title : 'Delete',       href : '/delete', class : 'my-class' }
    ]
) }}

{{ dropdown_button(
    {icon: 'plus'},
    [
        {title : 'Add more'},
        {title : 'Help needed'},
        {title : 'Delete'}
    ]
) }}

{{ dropdown_button(
    {title : 'Actions'},
    [
        {title : 'Add more'},
        {title : 'Help needed'},
        {title : 'Delete'}
    ]
) }}

Next steps

Please go back to the Tabler bundle documentation to find out more about using the theme.

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.
yandex/translate-api
voku/simple_html_dom
league/flysystem-vfs
bkwld/upchuck
filament/spatie-laravel-tags-plugin
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php