Socket
Book a DemoInstallSign in
Socket

@neoskop/enc-ui

Package Overview
Dependencies
Maintainers
16
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neoskop/enc-ui

UI component library for enercity

3.3.0
latest
npmnpm
Version published
Weekly downloads
247
567.57%
Maintainers
16
Weekly downloads
 
Created
Source

@neoskop/enc-ui

npm npm

@neoskop/enc-ui is a React UI library built with TypeScript and bundled using tsup. It provides a set of reusable components and hooks for building user interfaces in React applications.

Installation

To install the library, use one of the following package managers:

pnpm install @neoskop/enc-ui
# or
yarn add @neoskop/enc-ui
# or
npm add @neoskop/enc-ui

Usage

To use the components and hooks provided by @neoskop/enc-ui, import them into your React application:

Header for enercity

import { EnercityHeader } from "@neoskop/enc-ui/components/header/enercity";
import '@neoskop/enc-ui/components/header/enercity/index.css';

const App = () => {
  return (
    <div>
      <EnercityHeader />
      <h1>Hello, World!</h1>
    </div>
  );
};
import { EnercityFooter } from "@neoskop/enc-ui/components/footer/enercity";
import '@neoskop/enc-ui/components/footer/enercity/index.css';

const App = () => {
  return (
    <div>
      <h1>Hello, World!</h1>
      <EnercityFooter />
    </div>
  );
};

Custom Header

import { Search, Person } from "@neoskop/enercity-icons";
import { Header, HeaderAddon, type HeaderProps } from "@neoskop/enc-ui/components/header";
import '@neoskop/enc-ui/components/header/enercity/index.css';

export const config: HeaderProps['config'] = {
  mainItems: [
    {
      id: 'home',
      href: '/',
      title: 'Home',
    },
  ],
  preHeaderLinks: [
    {
      current: 'page',
      href: '/pre-header-link-1',
      id: 'pre-header-link-1',
      title: 'Pre Header Link 1',
    },
  ],
  targetGroups: [
    {
      current: 'page',
      href: '/target-group-1',
      id: 'target-group-1',
      title: 'Target Group 1',
    },
  ],
};

export const EnercityHeader = () => {
  return (
    <Header
      addonsSlot={
        <>
          <HeaderAddon
            iconSlot={<Search height={20} width={20} />}
            href="https://www.enercity.de/suche"
          >
            Suche
          </HeaderAddon>
          <HeaderAddon
            iconSlot={<Person height={20} width={20} />}
            href="https://www.enercity.de/login"
          >
            Login
          </HeaderAddon>
        </>
      }
      config={config}
    />
  );
};

EyeAble

In order to show the EyeAble trigger Visuelle Hilfe in the pre-header, you have to set the withEyeAbleTrigger prop on the Header component.

This package does not include the EyeAble scripts! You are expected to include them yourself, because how they are loaded depends on your framework of choice. An example for Next.js would be:

/*
  Replace ${domain} with the hostname of your application, e.g. www.enercity.de or support.enercity.de
  Check the EyeAble dashboard, if you are unsure which domain to provide.
*/

return (<>
  <Script
    async
    src={`https://www.enercity.de/eyeable/configs/${domain}.js`}
  />
  <Script
    async
    src="https://www.enercity.de/eyeable/public/js/eyeAble.js"
  />
</>);

Contributing

For development setup, build instructions, and publishing guidelines, see CONTRIBUTING.md.

FAQs

Package last updated on 29 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.