Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 1.67 KB

components-status.md

File metadata and controls

38 lines (28 loc) · 1.67 KB

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.

Status

Status has been implemented to simplify the use of the Tabler Status component

Parameters

status() macro, waits for 2 parameters:

Parameter Description Type Default
text Text to show in the status string
options Options object object {}

Options

Parameter Description Type Default
color Color of the status string green
lite Set if the status should use the lite display boolean false
with_dot Set if the status should use a dot boolean false
animated Set if the status dot is animated boolean true
extraClass Allow to add extra classes string empty string

Usage

{% from '@Tabler/components/status.html.twig' import status %}

{% set options = {'color': 'success', 'with_dot': true,'animated': true, 'lite': false, 'extraClass': 'me-3'} %}
{{ status('Demo', options) }}

Preview

grafik

Next steps

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