-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: initial workspace element positions and updated docs
- Loading branch information
1 parent
59983e2
commit 229ac60
Showing
6 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Meta } from "@storybook/blocks"; | ||
|
||
<Meta title="External Shapes" /> | ||
|
||
<h1>External Shapes</h1> | ||
|
||
<h4>You can control the shapes available to you within the toolkit by passing in an array of shapes in options as follows:</h4> | ||
|
||
```tsx | ||
import { SeatToolkit } from "@mezh-hq/react-seat-toolkit"; | ||
import { FireExtinguisher } from "lucide-react"; | ||
|
||
return <SeatToolkit | ||
mode="designer" | ||
options={{ | ||
shapes: { | ||
icons: [ | ||
FireExtinguisher | ||
], | ||
overrideDefaultIconset: false | ||
} | ||
}} | ||
/> | ||
``` | ||
|
||
<h4>Here, we are passing in an array of shapes with a single shape, FireExtinguisher, which will be added to the default shapes available in the toolkit.</h4> | ||
|
||
<h4>If you need to completely override the default shapes available in the toolkit, you can set the overrideDefaultIconset property to true. This will remove all default shapes and keep only the shapes you pass </h4> | ||
|
||
<br/> | ||
|
||
--- | ||
|
||
<br/> | ||
|
||
<h5> NOTE: The shapes you pass in should be React components that render an SVG and must contain a `displayName` property. If the `displayName` property is not present, the toolkit will not be able to render the shape. </h5> |