Module

cli.dashboard.widgets.quick_action

Quick Action Widget.

Grid action item for the landing screen. Displays an emoji, title, and description with hover/focus styling.

Usage:

from bengal.cli.dashboard.widgets import QuickAction

action = QuickAction("šŸ”Ø", "Build Site", "Run a full site build")

Classes

QuickAction 8 ā–¼
Quick action grid item for landing screen. Displays an emoji icon, title, and description. Emits S…

Quick action grid item for landing screen.

Displays an emoji icon, title, and description. Emits Selected message when clicked or activated.

Attributes

Name Type Description
BINDINGS ClassVar[list[tuple[str, str, str]]] —
emoji —

Icon emoji to display

title —

Action title (e.g., "Build Site")

description —

Short description of the action

Methods

compose 0 ComposeResult ā–¼
Compose the action layout.
def compose(self) -> ComposeResult
Returns
ComposeResult
action_select 0 ā–¼
Handle selection action.
def action_select(self) -> None
on_click 0 ā–¼
Handle click event.
def on_click(self) -> None
Internal Methods 1 ā–¼
__init__ 6 ā–¼
Initialize quick action.
def __init__(self, emoji: str, title: str, description: str, *, name: str | None = None, id: str | None = None, classes: str | None = None) -> None
Parameters
Name Type Description
emoji —

Icon emoji to display

title —

Action title

description —

Short description

name —

Widget name

Default:None
id —

Widget ID

Default:None
classes —

CSS classes

Default:None