11# React Seat Toolkit
22
3-
43<a aria-label =" License " href =" https://github.com/mezh-hq/react-seat-toolkit/blob/main/LICENSE " >
54 <img alt =" " src =" https://img.shields.io/badge/License-MIT-yellow.svg " >
65</a >
@@ -28,46 +27,50 @@ React UI library to design and render seat layouts. The library is still under a
2827 <img width =" 49.5% " alt =" image " src =" https://github.com/mezh-hq/react-seat-toolkit/assets/73662613/0e023ffd-b4a2-4724-81f3-3ba74114b9a5 " >
2928</p >
3029
31-
3230## Features
3331
3432- ** JSON based** : Define your seat layout using JSON data and retrieve it back as JSON after customization ✓
3533
3634- ** Customizable** : Customize the layout as per your requirements
3735
38- - ** Seats**
39- - Add new seats ✓
40- - Remove existing seats ✓
41- - Change seat colors ✓
42- - Change seat labels ✓
43- - Change seat status ✓
44- - Group seats together into categories ✓
45- - Categorizer (Manage seat categories) ✓
46-
47- - ** Pen**
48- - Draw on the layout using a pen tool to create custom shapes ✓
49-
50- - ** Text**
51- - Add text to the layout ✓
52- - Change text color ✓
53- - Change text size ✓
54- - Change text font weight ✓
55-
56- - ** Shapes**
57- - Add shapes to the layout ✓
58- - Change shape color ✓
59- - Change shape size ✓
60- - Change shape border color ✓
61-
62- - ** Sections**
63- - Section manager 🛠️
64- - Free seating sections 🛠️
65-
66- - ** Miscallaneous**
67- - Add, move around and scale background images ✓
68- - Add and move around booths ✓
69- - Multiple element selection and deselection ✓
70- - Bring elements to front or back ✓
36+ - ** Seats**
37+
38+ - Add new seats ✓
39+ - Remove existing seats ✓
40+ - Change seat colors ✓
41+ - Change seat labels ✓
42+ - Change seat status ✓
43+ - Group seats together into categories ✓
44+ - Categorizer (Manage seat categories) ✓
45+
46+ - ** Pen**
47+
48+ - Draw on the layout using a pen tool to create custom shapes ✓
49+
50+ - ** Text**
51+
52+ - Add text to the layout ✓
53+ - Change text color ✓
54+ - Change text size ✓
55+ - Change text font weight ✓
56+
57+ - ** Shapes**
58+
59+ - Add shapes to the layout ✓
60+ - Change shape color ✓
61+ - Change shape size ✓
62+ - Change shape border color ✓
63+
64+ - ** Sections**
65+
66+ - Section manager 🛠️
67+ - Free seating sections 🛠️
68+
69+ - ** Miscallaneous**
70+ - Add, move around and scale background images ✓
71+ - Add and move around booths ✓
72+ - Multiple element selection and deselection ✓
73+ - Bring elements to front or back ✓
7174
7275- ** Responsive** : The layout is responsive and can be viewed on any device 🛠️
7376
@@ -86,21 +89,21 @@ Run `bun i @mezh-hq/react-seat-toolkit` to incorporate into your project <br/>
8689### User mode
8790
8891``` jsx
89- import React from ' react' ;
90- import SeatToolkit from ' @mezh-hq/react-seat-toolkit' ;
91- import ' @mezh-hq/react-seat-toolkit/styles' ;
92+ import React from " react" ;
93+ import SeatToolkit from " @mezh-hq/react-seat-toolkit" ;
94+ import " @mezh-hq/react-seat-toolkit/styles" ;
9295
9396const App = () => {
9497 const data = {
9598 seats: [
9699 {
97- id: ' 1 ' ,
100+ id: " 1 " ,
98101 x: 100 ,
99102 y: 100 ,
100- label: ' A1 ' ,
101- color: ' blue' ,
102- },
103- ],
103+ label: " A1 " ,
104+ color: " blue"
105+ }
106+ ]
104107 };
105108 return (
106109 < SeatToolkit
@@ -112,7 +115,7 @@ const App = () => {
112115 },
113116 onSectionClick : (section ) => {
114117 console .log (section);
115- },
118+ }
116119 }}
117120 / >
118121 );
@@ -124,9 +127,9 @@ export default App;
124127### Designer mode
125128
126129``` jsx
127- import React from ' react' ;
128- import SeatToolkit from ' @mezh-hq/react-seat-toolkit' ;
129- import ' @mezh-hq/react-seat-toolkit/styles' ;
130+ import React from " react" ;
131+ import SeatToolkit from " @mezh-hq/react-seat-toolkit" ;
132+ import " @mezh-hq/react-seat-toolkit/styles" ;
130133
131134const App = () => {
132135 return (
@@ -135,7 +138,7 @@ const App = () => {
135138 events= {{
136139 onExport : (data ) => {
137140 console .log (data);
138- },
141+ }
139142 }}
140143 / >
141144 );
0 commit comments