Reactium
  • Quick Start
  • Discuss
  • Approach
    • Architecture
    • DDD Introduction
    • Domain Model
  • Reactium App Foundation
    • Reactium Guides
      • Creating a Simple Single Page Web App (SPA)
      • Creating a Sassy Style Sheet
      • Reactium Core
      • Reactium + Actinium (APIs)
      • Reactium + REST
      • Plugin Module Guide
      • Animating React Routes
      • Reactium in Production
    • Reactium Domain Model
      • Basic Domain Model
      • Runtime Domain Model
      • Buildtime Domain Model
    • Reactium SDK
      • Reactium SDK Reference
    • Updating Reactium
  • Installing Foundations
    • Before You Install
    • Install Reactium
    • Install Actinium
  • Reactium API Foundation (Actinium)
    • Actinium Core
    • Setting up your User
    • Actinium SDK
      • Actinium SDK Reference
    • Actinium Domain Model
    • Extending
    • Updating
    • Live Query
  • Reactium Toolkit
    • Overview
    • Installation
    • Configuration
    • Customization
    • Creating Elements
      • Sidebar Elements
      • Toolbar Elements
      • Documentation Elements
    • Components
      • Sidebar
      • MenuLink
      • Element
      • Code
      • Markdown
      • Icon
    • Toolkit SDK
Powered by GitBook
On this page
  • Logo
  • Brand Name
  • Version Info
  1. Reactium Toolkit

Customization

The Reactium Toolkit can be customized to fit your design aesthetic and extended to add new functionality.

Logo

You can replace the logo by registering a component with an ID of RTKLOGO

/CustomLogo/reactium-hooks.js
import CustomLogo from '.';
import Reactium from 'reactium-core/sdk'; 

Reactium.Plugin.register('CustomLogo').then(() => {

    // Ensure the toolkit plugin is available
    if (!Reactium.Toolkit) return;
    
    // Replace Logo on plugin-ready
    Reactium.Hook.register('plugin-ready', () => {
        Reactium.Component.register('RTKLOGO', CustomLogo);
    });
});

Brand Name

You can replace the default brand name by registering a configuration hook and setting the brand property to your custom component or string.

/MyPlugin/reactium-hooks.js
import Reactium from 'reactium-core/sdk'; 

Reactium.Plugin.register('MyPlugin').then(() => {

    // Ensure the toolkit plugin is available
    if (!Reactium.Toolkit) return;
    
    Reactium.Hook.register('plugin-ready', () => {
    
        // Register Toolkit config override
        Reactium.Hook.registerSync('rtk-config', config => {
            config.brand = <div>My Awesome Brand</div>;
        });
    });
});

Version Info

You can replace the default version info by registering a configuration hook and setting the info property to your custom component or string.

/MyPlugin/reactium-hooks.js
import Reactium from 'reactium-core/sdk'; 

Reactium.Plugin.register('MyPlugin').then(() => {
    
    // Ensure the toolkit plugin is available
    if (!Reactium.Toolkit) return;

    Reactium.Hook.register('plugin-ready', () => {
    
        // Register Toolkit config override
        Reactium.Hook.registerSync('rtk-config', config => {
            config.info = <div>Style Guide</div>;
        });
    });
});
PreviousConfigurationNextCreating Elements

Last updated 4 years ago