0.0.33 • Published 16 days ago

@episource/signet-react v0.0.33

Weekly downloads
-
License
-
Repository
-
Last release
16 days ago

Installation & Use

Install the package from npm, for more information visit Signet React Documentation

npm install @episource/signet-react

The signet-react depends on signet which is the main application for the design system. The react library only contains components that you can import into your react application, and utilize immediately. Once you install signet-react, it will install signet and signet-tokens, the design tokens application for Episource.

Import and use components from signet-react

On your app.tsx/index.js or any react file, import and use the components

import { MyComponent } from  '@episource/signet-react'; 

export  function  App() {
return (
    <>
        <h1>Header Component</h1>
         {/* Add MyComponent Here */}
        <MyComponent first='Sanmi' middle='Ebenezer' last='Ajanaku'></MyComponent>
        <NxWelcome title="Episource React JS!"/>
        <div  />
    </>
    );
}

Alternative Method to use the component

On your index.ts or index.js file, add import and use the components through polyfills.

// FILE - index.js
import { defineCustomElements, applyPolyfills } from '@episource/signet/loader'

// Add the applyPolyfills to the functions on the index.js
applyPolyfills().then(() => {
    defineCustomElements();
});

// Add MyComponent to any react file. e.g. welcome.js or welcome.tsx
<my-component first='Sanmi' middle='Ebenezer' last='Ajanaku'></my-component>

image

Remember to use Design Tokens

To enjoy your React components, remember to use our @episource/design-tokens on your main application!

import '@episource/signet-tokens/dist/episource/tokens.css'

:::tip Props

To know the props of the component, hover your mouse on MyComponent; this component has the first, middle, and last props.

:::

0.0.33

16 days ago

0.0.32

19 days ago

0.0.31

1 month ago

0.0.30

1 month ago

0.0.29

1 month ago

0.0.28

2 months ago

0.0.26

3 months ago

0.0.21

4 months ago

0.0.22

4 months ago

0.0.23

4 months ago

0.0.25

4 months ago

0.0.9-alpha.1

9 months ago

0.0.20

7 months ago

0.0.9-alpha

9 months ago

0.0.15

8 months ago

0.0.17

8 months ago

0.0.18

7 months ago

0.0.19

6 months ago

0.0.10

9 months ago

0.0.11

9 months ago

0.0.13

9 months ago

0.0.9

9 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.4

11 months ago

0.0.2

1 year ago

0.0.1-alpha.0.9

1 year ago

0.0.1-alpha.0.8

1 year ago

0.0.1-alpha.0.7

1 year ago

0.0.1-alpha.0.6

1 year ago

0.0.1-alpha.0.5

1 year ago

0.0.1-alpha.0.4

1 year ago

0.0.1-alpha.0.3

1 year ago

0.0.1-alpha.0.2

1 year ago

0.0.1-alpha.0.1

1 year ago