Skip to content
Back

AI feature launchPro

A what's-new card for an AI capability: a tiny animated preview sits over a three part walkthrough that autoplays until you take over, three benefits per step, a workspace switch only admins can turn on, and Try it now.

oxyn add ai-feature-launch
NewStep 1 of 3

Rewrite inline

Select any text and ask for a shorter, clearer or friendlier version without leaving the page.

  • Works in docs, comments and replies
  • Keeps your formatting and links
  • Undo puts the original back
Enable for my workspace

Off · members can't use it yet

Powered by Claude
The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • An in-product launch card for an AI feature: a looping mini demo, a three-step tour, benefits, an admin-gated workspace switch and Try it now.

When not to use

Installation

AI feature launch is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add ai-feature-launch

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Tour

Autoplaying tour, admin.

NewStep 1 of 3

Rewrite inline

Select any text and ask for a shorter, clearer or friendlier version without leaving the page.

  • Works in docs, comments and replies
  • Keeps your formatting and links
  • Undo puts the original back
Enable for my workspace

Off · members can't use it yet

Powered by Claude
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Member

Member: the switch is locked with a note (Oxyn extra).

NewStep 1 of 3

Rewrite inline

Select any text and ask for a shorter, clearer or friendlier version without leaving the page.

  • Works in docs, comments and replies
  • Keeps your formatting and links
  • Undo puts the original back
Enable for my workspace

Only admins can turn this on. Ask an admin.

Powered by Claude
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Enabled

On for the workspace, tour paused (Oxyn extra).

NewStep 1 of 3

Rewrite inline

Select any text and ask for a shorter, clearer or friendlier version without leaving the page.

  • Works in docs, comments and replies
  • Keeps your formatting and links
  • Undo puts the original back
Enable for my workspace

On for everyone in Northwind

Powered by Claude
Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

AiFeatureLaunch

PropTypeDefaultDescription
nowrequiredClockMs—Host clock.
adminbooltrueYou are a workspace admin.
enabledboolDefault::default()Already on for the workspace.
auto_playbooltrueAutoplay the tour.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
←or→orHomeorEndOn the dots, change step and stop autoplay
SpaceToggle the workspace switch; again while saving cancels
TabThe active dot, the switch, Learn more and Try it now

Accessibility

  • The dots are a tablist with roving focus; the demo is decorative and hidden from screen readers.
  • The switch says who can change it; saving, cancelling and every simulated action are announced.
From the spec

Dots are a tablist with roving arrow keys, Home and End; the demo is decorative and hidden; the switch is named and its note says who can change it; every simulated action is announced. Every action returns the line the polite live region announces. The focus outline shows only for keyboard focus.

Motion & interaction

The demo types its request, then shows the result and a check; the active dot fills as its step plays; benefits fade in with each step.

Timing

Everything on screen is derived from the host clock now (no timers in the block), so playback, tests and the GPUI view agree.

TransitionDurationEasing
Step6,000 ms (STEP_MS)linear
Typing45 ms a characterlinear
Saving1,200 ms (SAVE_MS)—

Reduced motion: fades, shimmer and count-ups stop; every state keeps its words and icons.

Responsive behaviour

  • Up to 520 px; on cards under 440 px both buttons stretch across and the model credit moves to its own centred line.
Edge cases (spec)

Up to 520 px. Below 440 px of block width the actions span the width and the model credit centres under them; demo lines truncate with an ellipsis. Layout follows the block's own width (container queries), never the viewport. Checked at 1440, 768 and 390 px in light and dark with no text overlap. Chrome is monochrome grey; colour is semantic only (success, warning, danger, info) plus data series and the official coloured brand and model marks.

Notes for AI

  • Import AiFeatureLaunch from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: BlocksView in oxyn_gpui.
  • Props to set first: now.
  • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI