React Shared Components

Interactive testing environment for react-shared components

Theme Playground

Current: Default

Banner

Banner component with optional image, title, and back button. Supports multiple layout variants.

Interactive Playground

Customize the Banner properties and see the changes in real-time.

banner

Welcome to My Store

Layout Variants

The Banner component supports 7 different layout variants. Each layout provides a unique visual style.

Default Layout

banner

Welcome to My Store

Brim Layout

banner

Welcome to My Store

Ode Layout

banner

Welcome to My Store

Nova Layout

banner

Welcome to My Store

Crest Layout

banner

Welcome to My Store

Rung Layout

banner

Welcome to My Store

Glint Layout

banner

Welcome to My Store

API Reference

PropTypeDefaultDescription
imagestring''URL to banner image
titlestring''Banner title text
backgroundColorstring'default'Background color (currently unused)
showBackbooleanfalseShow back button
layoutBannerLayoutundefinedLayout variant to use
themeanyundefinedTheme configuration override
onBack() => voidundefinedBack button click handler
childrenReact.ReactNodeundefinedAdditional content below banner
classNamestringundefinedAdditional CSS classes

Usage Notes

Layout Variants

The component supports 7 layouts: default, brim, ode, nova, crest, rung, and glint. Theme-specific layouts (brim, ode, nova, crest, rung, glint) work best with their corresponding themes.

Image Handling

If no image is provided, a placeholder image is used. The image aspect ratio varies by layout (16:9 for default, 4:3 for most others).

Back Button

The back button appears when showBack is true. Its position varies by layout. Make sure to provide an onBack handler when using the back button.

Children Content

You can pass additional content as children, which will be rendered below the banner image and title.