Weave 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

Bootstrap Twig Components Laravel Package

ebitkov/bootstrap-twig-components

View on GitHub
Deep Wiki
Context7

Alerts

(see also https://getbootstrap.com/docs/5.3/components/alerts/)

Fore more details on how to use UX components please visit the Symfony documentation.

Basic Usage

The AlertComponent takes two arguments:

  • a type equal to the alert variants defined on the Bootstrap documentation
  • a message to print
<twig:bs:alert type="primary" message="Hello World"/>

translates to

<div class="alert alert-primary" role="alert">
    Hello World
</div>

You can also completely overwrite the contents of the alert.

<twig:bs:alert type="danger">
    <b>Warning:<b>
    <p>It's dangerous out here!</p>
</twig:bs:alert>

translates to:

<div class="alert alert-danger" role="alert">
    <b>Warning:</b>
    <p>It's dangerous out here!</p>
</div>

The component will automatically set the alert class and an alert-{type} class for styling. It also appends the role="alert" attribute.

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.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels