Skip to content

Commit

Permalink
chore: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong committed Jul 25, 2024
1 parent d909039 commit 9572b11
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions site/docs/api/Editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ const App = () => {
```
In the above example, every user element will now be wrapped in a black `div`.

### Specifying the Drop Indicator colour
### Customising the drag-and-drop indicator

You could change the colours of the drag and drop indicators like so:
You could also change the colours/style of the drag-and-drop indicator like so:

```jsx {6-9}
import {Editor} from "@craftjs/core";
Expand All @@ -65,7 +65,11 @@ const App = () => {
<Editor
indicator={{
'success': '#2d9d78', // green
'error': '#e34850' // red
'error': '#e34850', // red
'style': { // custom CSS properties
boxShadow: '...
},
'className': 'your-css-class' // custom CSS class
}}
>
<Frame resolver={{Hero}}>
Expand Down

0 comments on commit 9572b11

Please sign in to comment.