Fluent Commerce Logo
Docs
Sign In

Introduction to the Component Library

Essential knowledge

Authors:

Cameron Johns, Cille Schliebitz, Anita Gu

Changed on:

3 Feb 2025

Overview

This lesson introduces the OMX Component Library, a collection of pre-built, configurable UI components designed for use in Fluent Web Apps. Unlike standard UI components, these components are specifically built to interact natively with the Fluent Platform. We'll explore the various categories of components within the library, including Foundation, Content, Layout, Interaction, and Field Components, and understand their distinct roles in building user interfaces.

Key points

  • Fluent Platform Integration: OMX Components seamlessly integrate with the Fluent Platform.
  • Component Categories: The library includes Foundation, Content, Layout, Interaction, and Field Components, each with distinct roles.
  • Component Hierarchy: Content and Layout components are typically children of Foundation Components.
  • Mobile Responsiveness: Components should be designed with mobile responsiveness in mind.
  • Interaction Components: These enable user interaction with the application.
  • Field Components: Automatically rendered form elements, essential for complex workflow input, are not configured via the manifest.

Introduction to the Component Library

The OMX Component Library is a suite of UI Components, ready to be configured and used in Fluent Web Apps.

Unlike a standard UI Component, Fluent Components are built to interact with the Fluent Platform natively.

The Library contains a number of different types of Components, including:

  • Foundation Components, such as Page Components, form the base of a screen
  • Content Components for displaying data and media
  • Layout Components for structuring pages
  • Interaction Components for capturing user input
No alt provided

Learn more about the Foundation, Content, Layout, and Interaction Components:

Foundation Components

Content Components

Layout Components

Interaction Components

Additionally, there is a Library of Field Components, which are automatically rendered in forms:

Foundation Components

Foundation Components are a category of components within the OMX Component Library.

Foundation Components are top level components that map to a specific URL path within the Web App.

Page Components are the primary foundation component, as they layout the page area, and provide a content area for child components to be displayed.

No alt provided

Page components are mobile responsive, so the screens render perfectly on any device. Care should be taken to ensure that all components placed on a page are also responsive and behave as expected.

Different Page Components are available within the library, and you can create your own too. For example, you may wish to use a simple, clean page component with minimal header information or a more advanced wizard-style page to help users through a step-by-step process.

Learn more about the Foundation Components:

Content Components

Content Components are components that display information, including data or media.

They can range from simple card components to advanced multimedia or graphical components.

No alt provided

Content Components typically display data from the configured Page query, but some may display information retrieved via a component-specific API call.

Content Components are typically added as descendants to Page components to form screens.

Learn more about the Content Components:

Layout Components

Layout Components provide additional structural elements to the screen.

For example, you may wish to layout your page into multiple sections, each with a header and actions.

No alt provided

Or, you may want to display tabs that show different components or data based on which is active.

No alt provided

Another example is to conditionally display components, based on an entity type for example.

Like Foundation Components, Layout Components have descendants, which identify what should be displayed for that layout.

Learn more about the Layout Components:

Interaction Components

Interaction Components allow users to interact with the OMS.

Interaction Components could be a form to capture information or a button to execute an action.

No alt providedNo alt provided

These are not to be confused with the standard user actions, which display buttons in the page header and slide out a right-hand drawer for form display.

Rather, these components can be added directly to a screen, just like any other component.

Learn more about the Interaction Components:

Field Components

Field Components are a different kind of component allogether.

They cannot be configured via the manifest. Rather, they are automatically rendered based on the data type to be captured.

Field Components are essentially form-based elements. They could be as simple as a text box, or more advanced with multiple input fields and types.

Field Components are key in delivering flexibility and enhanced user experience to complex user actions driven by the workflow. Workflows can require complex data input for the expected trigger event, and Field components enable full control over the user experience provided for those cases.

No alt provided

For example, in the screenshot above, the Requested Quantity and the Location selection are 2 parts to a single field, which map to an Event Attribute structured as follows:

`{`

`    "name": "StockReserveDetails",`

`    "value": {`

`        "locationRef": "F_NSYD",`

`        "requestedQuantity": 2`

`    },`

`    "type": "STOCK_RESERVE_DETAILS"`

`}`

Since Field Components are rendered automatically based on the definition required, there is no configuration reference required. Some fields can be enhanced with extensions, check the individual references for these cases.

Learn more about the Field Components:

Copyright © 2025 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.

Fluent Logo