Skip to content
OVERLAYS · FREE

Tour

Guide new users through your app step by step.

A step-by-step introduction that highlights page elements chosen by a CSS selector.

Why it helps

  • Highlights real elements
  • Step by step
  • Skips missing targets

Where it fits

  • New users
  • Feature announcements
  • Onboarding
Tour control in a RayCraft page

Example

    <Stack Align="center">
        <Button id="tour-primary" StartIcon="IconName.Save">Save</Button>
        <Button id="tour-secondary" Variant="Variant.Outlined">Cancel</Button>
        <TextField id="tour-field" Label="Name" @bind-Value="_name" />
    </Stack>
    <Button Variant="Variant.Outlined" OnClick="@(() => _open = true)">Start tour</Button>
<Tour Steps="_steps" @bind-Open="_open" @bind-ActiveIndex="_index" />

@code {
    private bool _open;
    private int _index;
    private string? _name;

    private readonly TourStep[] _steps =
    [
        new("#tour-field", "Enter a name", "Start by typing a name for the item."),
        new("#tour-primary", "Save your work", "This button stores the item."),
        new("#tour-secondary", "Changed your mind?", "Cancel discards the changes."),
        new("#does-not-exist", "Centered step", "When no element matches, the step is shown in the middle of the screen.")
    ];
}

A short fragment. Add @using RayCraft.Blazor.Components to your page and use an interactive render mode.

Included in RayCraft Free. Working examples are in the GitHub repository (MIT); it holds example and demo code, not the library code.

All controls ยท Documentation