1.3.4 • Published 8 days ago

@ksense-tech/components v1.3.4

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
8 days ago

@ksense-tech/components

A collection of reusable React components for building amazing user interfaces.

Installation

You can install this library using npm or yarn:

npm install @ksense-tech/components

or

yarn add @ksense-tech/components

Usage

Import the components you need and start building!

import React from "react";
import { RichTextEditor, RichTextEditorProps } from "@ksense-tech/components";


const App = () => {
  const props: RichTextEditorProps = {
    // ...Your props here
  };

  return (
    <div>
      <RichTextEditor {...props} />
    </div>
  );
};

export default App;

Styling

This library provides customizable styles for its components. You can use the "sx" prop to apply custom styles using Emotion's CSS-in-JS syntax:

<RichTextEditor
  {...props}
  sx={{
    backgroundColor: "blue !important",
    color: "white !important",
    "&:hover": {
      backgroundColor: "darkblue  !important",
    },
    "& .toolbar": {
      backgroundColor: "lightblue  !important",
    },
  }}
/>

Images

This component library facilitates seamless image uploading within the editor.

To enable image uploading within your editor, utilize the handleFileUpload prop. This prop expects a function that receives the File being uploaded and should return a corresponding URL.

For instance, when selecting an image for upload, the handleFileUpload method is invoked to store the image in a desired location (e.g., S3). The method's output, an image URL, serves as the source (src) for an img element.

Beyond the toolbar's image insertion, users can conveniently add images via copy-pasting or drag-and-dropping files directly into the editor.

1.3.4

8 days ago

1.3.3

8 days ago

1.3.2

10 days ago

1.3.1

10 days ago

1.3.0

10 days ago

1.2.7

3 months ago

1.2.6

3 months ago

1.2.5

3 months ago

1.2.4

3 months ago

1.2.3

3 months ago

1.2.2

3 months ago

1.2.1

3 months ago

1.2.0

3 months ago

1.1.38

4 months ago

1.1.37

4 months ago

1.1.36

4 months ago

1.1.39

4 months ago

1.1.35

4 months ago

1.1.34

4 months ago

1.1.33

4 months ago

1.1.32

4 months ago

1.1.31

4 months ago

1.1.29

4 months ago

1.1.30

4 months ago

1.1.28

4 months ago

1.1.23

5 months ago

1.1.22

5 months ago

1.1.21

5 months ago

1.1.27

4 months ago

1.1.26

4 months ago

1.1.25

4 months ago

1.1.24

4 months ago

1.1.9

5 months ago

1.1.8

5 months ago

1.1.7

5 months ago

1.1.6

5 months ago

1.1.5

5 months ago

1.1.4

5 months ago

1.1.12

5 months ago

1.1.11

5 months ago

1.1.10

5 months ago

1.1.16

5 months ago

1.1.15

5 months ago

1.1.14

5 months ago

1.1.13

5 months ago

1.1.19

5 months ago

1.1.18

5 months ago

1.1.17

5 months ago

1.1.20

5 months ago

1.1.1

5 months ago

1.1.0

5 months ago

1.1.3

5 months ago

1.1.2

5 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

9 months ago

1.0.0

9 months ago