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

Ui Laravel Package

beartropy/ui

Beartropy UI is a small Laravel UI package providing ready-made components and helpers to speed up building admin and front-end screens. Drop in common layouts, forms, and UI utilities to get a consistent look fast with minimal setup.

View on GitHub
Deep Wiki
Context7

Chat Input

A specialized textarea for chat applications with auto-resize, single-line/stacked layout switching, submit-on-Enter, and Livewire integration.

Basic Usage

<x-bt-chat-input wire:model="message" />

With Label

<x-bt-chat-input wire:model="message" label="Message" />

Placeholder

Defaults to the localized "Type a message..." text. Override with the placeholder prop:

<x-bt-chat-input wire:model="message" placeholder="Ask anything..." />

Submit on Enter

By default, pressing Enter submits the form. Shift+Enter adds a newline. Disable with:

<x-bt-chat-input wire:model="message" :submitOnEnter="false" />

Livewire Action

Fire a specific Livewire action on submit instead of form submission:

<x-bt-chat-input wire:model="message" action="sendMessage" />

Stacked Layout

In stacked mode, tools and actions wrap below the textarea instead of being inline:

<x-bt-chat-input wire:model="message" :stacked="true" />

With Tools Slot

Add tool buttons to the left side:

<x-bt-chat-input wire:model="message">
    <x-slot:tools>
        <x-bt-button-icon icon="paper-clip" ghost />
    </x-slot:tools>
</x-bt-chat-input>

With Actions/Footer Slot

Add action buttons (submit, etc.):

<x-bt-chat-input wire:model="message">
    <x-slot:actions>
        <x-bt-button-icon icon="paper-airplane" solid beartropy />
    </x-slot:actions>
</x-bt-chat-input>

Max Length

<x-bt-chat-input wire:model="message" :maxLength="500" />

Border

Add a visible border:

<x-bt-chat-input wire:model="message" :border="true" />

Colors

<x-bt-chat-input wire:model="message" color="blue" />
<x-bt-chat-input wire:model="message" blue />

Props

Prop Type Default Description
id ?string auto-generated Component ID
name ?string same as id Input name
label ?string null Label text
color ?string null Color preset
placeholder string 'Type a message...' (localized) Placeholder text
disabled bool false Disabled state
readonly bool false Readonly state
required bool false Required state
help ?string null Helper text
hint ?string null Hint text
customError mixed null Custom error message
maxLength ?int null Max character length
stacked bool false Stacked layout mode
submitOnEnter bool true Submit on Enter key
action ?string null Livewire action on submit
border bool false Show border

Slots

Slot Description
tools Left-side tool buttons
footer / actions Action buttons area (aliases)
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.
boundwize/jsonrecast
nexmo/api-specification
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
agtp/mod-php
splash/sonata-admin
splash/metadata