Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.58 KB

footer.md

File metadata and controls

62 lines (39 loc) · 1.58 KB

Footer Component

The footer component provides a consistent bottom section for your application. Here's how to implement it across different frameworks.

Angular Implementation

Import the component in your main module (main.ts)

import '@linuxfoundation/lfx-ui-core';

Then, use the component in your template:

<lfx-footer></lfx-footer>

Example: https://stackblitz.com/edit/stackblitz-starters-lr77kq?file=src%2Fmain.ts

Vue Implementation

In your main.js file, import the component:

import '@linuxfoundation/lfx-ui-core';

Then, use the component in your template:

<lfx-footer />

Example: https://stackblitz.com/edit/hf2wgy?file=src%2Fmain.js

VanillaJS Implementation

Import the npm package using unpkg:

<script src="https://unpkg.com/@linuxfoundation/lfx-ui-core@latest/dist/browser/footer.bundle.js"></script>

Then, use the component in your HTML:

<lfx-footer></lfx-footer>

Example: https://stackblitz.com/edit/vitejs-vite-vn2ysk?file=index.html

Development

To develop the component, run the following commands:

npm run build
npm run storybook

This will build the component and start the storybook server. You can then navigate to http://localhost:6006 to view the component. Updates made to the component will be reflected live in the storybook environment.