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

Form theme

This bundle does ship three form-themes:

None of these themes is automatically loaded, you have to use it manually.

Use the vertical theme

To use the horizontal theme everywhere in your application edit config/packages/twig.yaml:

twig:
    form_themes:
        - '[@Tabler](https://github.com/Tabler)/layout/form_theme.html.twig'

To use it only for one form, change your twig file:

    {% form_theme form '[@Tabler](https://github.com/Tabler)/layout/form_theme.html.twig' %}
    {{ form_start(form) }}

This theme extends Symfony Bootstrap 5 theme, which can be used instead without problems. If we ever add features to the form theme, they will be optional and only cosmetic.

Use the horizontal theme

To use the horizontal theme everywhere in your application edit config/packages/twig.yaml:

twig:
    form_themes:
        - '[@Tabler](https://github.com/Tabler)/layout/form_theme_horizontal.html.twig'

To use it only for one form, change your twig file:

    {% form_theme form '[@Tabler](https://github.com/Tabler)/layout/form_theme_horizontal.html.twig' %}
    {{ form_start(form) }}

This theme extends Symfony Bootstrap 5 Horizontal theme, which can be used instead without problems. If we ever add features to the form theme, they will be optional and only cosmetic.

Use the security theme

The security theme is ONLY meant for the registration/login pages. Please set it manually if you customize these pages:

    {% form_theme form '[@Tabler](https://github.com/Tabler)/layout/form_theme_security.html.twig' %}

Icons in input-groups

If you want to show icons in your forms inputs, you could add this code to your own form theme:

{% block date_widget %}
    {% if widget == 'single_text' %}
        <div class="input-group">
            <div class="input-group-text">
                {{ tabler_icon('calendar') }}
            </div>
            {{- parent() -}}
        </div>
    {% else %}
        {{- parent() -}}
    {% endif %}
{% endblock %}

{% block time_widget %}
    {% if widget == 'single_text' %}
        <div class="input-group">
            <div class="input-group-text">
                {{ tabler_icon('clock') }}
            </div>
            {{- parent() -}}
        </div>
    {% else %}
        {{ parent() }}
    {% endif %}
{% endblock %}

{% block datetime_widget -%}
    {%- if widget == 'single_text' -%}
        <div class="input-group">
            <div class="input-group-text">
                {{ tabler_icon('calendar') }}
            </div>
            {{- parent() -}}
        </div>
    {%- else -%}
        {{- parent() -}}
    {%- endif -%}
{%- endblock datetime_widget %}

{% block tel_widget -%}
    <div class="input-group">
        <div class="input-group-text">
            {{ tabler_icon('phone') }}
        </div>
        {{- parent() -}}
    </div>
{%- endblock tel_widget %}

{% block url_widget -%}
    <div class="input-group">
        <div class="input-group-text">
            {{ tabler_icon('home') }}
        </div>
        {{- parent() -}}
    </div>
{%- endblock url_widget %}

{% block email_widget -%}
    <div class="input-group">
        <div class="input-group-text">
            {{ tabler_icon('email') }}
        </div>
        {{- parent() -}}
    </div>
{%- endblock email_widget %}

{% block password_widget -%}
    <div class="input-group">
        <div class="input-group-text">
            {{ tabler_icon('password') }}
        </div>
        {{- parent() -}}
    </div>
{%- endblock password_widget %}

Please read Symfony / Twig documentation if you don't know how to use this.

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