Skip to content

e-Spirit/fsxa-ui

Folders and files

NameName
Last commit message
Last commit date
Aug 16, 2021
Oct 26, 2020
May 4, 2023
Mar 4, 2021
Dec 21, 2022
Apr 22, 2020
Jan 15, 2021
May 4, 2023
Jan 12, 2023
Jun 29, 2020
Jun 5, 2020
Nov 30, 2020
Dec 21, 2022
Aug 31, 2022
Jul 12, 2020
Sep 6, 2023
Jul 12, 2020
Oct 26, 2020
Apr 26, 2023
Apr 26, 2023
Jul 15, 2020
Mar 4, 2021
Aug 16, 2021
Jun 29, 2020

Repository files navigation

❗ Important Notice

This repository has been deprecated and is no longer actively maintained. We recommend you use the crownpeak-pwa-template instead.

FSXA-UI

About the FSXA

The FirstSpirit Experience Accelerator (FSXA) is the hybrid solution of a digital experience platform, combining a headless approach with enterprise capabilities. The FSXA stack consists of five repositories:

While the FSXA-API is a maintained product with a life cycle, the FSXA-PWA, FSXA-UI, FSXA-Nuxt-Module and FSXA-Pattern-Library are merely best practices examples how a project could be set up and integrate the FSXA-API. The latter repositories can be forked to speed up the startup time of a frontend project or to understand how common use cases can be solved in headless projects. The code itself can therefore also be used as documentation of best practices.

The following image illustrates the product cut: fsxa-stack product cut overview

Attention Since the reference implementation does not represent a maintained product, we do not guarantee support for its use.

Project setup

FSXA-UI is really easy to get started with. Make sure to follow the guide below to get a better understanding about some of the decisions behind FSXA-UI and how to use it to kick-off your next project.

You can install FSXA-UI via Yarn or NPM.

# with npm
npm install fsxa-ui --save

# with yarn
yarn add fsxa-ui

Please make sure that the main CSS file is imported from the FSXA UI package.

// directly importing the css into your main component
import "fsxa-ui/dist/fsxa-ui.css";
/* using node-style package resolution in a CSS file */
@import "fsxa-ui/dist/fsxa-ui.css";
<!-- using plain html -->
<link
  href="path/to/node_modules/fsxa-ui/dist/fsxa-ui.css"
  rel="preload"
  as="style"
/>

Usage

Now you can use the components in your project. In the navigation you will find all available components with a detailed description of all properties and usage examples.

Here you can see how easy the Button component can be used.

import { Button } from "fsxa-ui";

<Button variant="animated" handleClick={handleClick}>
  This is my Button
</Button>;

Please make sure that your component is registered correctly.

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your unit tests

npm run test:unit

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Existing CSS-Variables:

  • --fsxa-text-highlight-color

Legal Notices

FSXA-UI is an example solution of Crownpeak Technology GmbH, Dortmund, Germany. The FSXA-UI is subject to the Apache-2.0 license.

Disclaimer

This document is provided for information purposes only. Crownpeak Technology may change the contents hereof without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. Crownpeak Technology specifically disclaims any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. The technologies, functionality, services, and processes described herein are subject to change without notice.