Help actions

The HelpAction links a single form field, component or any other action slot to a documentation page — or, more commonly, to a small partial of one.

For example, a "What is a slug?" hint on a field:

use Guava\FilamentKnowledgeBase\Actions\HelpAction;

TextInput::make('slug')
    ->hintAction(
        HelpAction::forDocumentable('projects.creating-projects.slug')
            ->label('What is a slug?')
    );

When modal previews are enabled, the action opens the documentation in a modal, otherwise it links to the full page.

Partials

Help actions shine together with includes: extract a small snippet (like the slug explanation) into its own markdown file with active: false, include it in your main documentation, and point the HelpAction at the snippet. The user gets a small, focused help modal, and your knowledge base has no duplicated content.

guava/filament-knowledge-base 161K Installationen · 210 Sterne
// COOKIES

Ein paar Cookies halten die Seite am Laufen; andere merken sich Einstellungen oder zählen Besuche. Sie entscheiden.

Cookie-Richtlinie