Skip to content

Commit

Permalink
WIP style example (needs actual UI to demonstrate it)
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepum committed Mar 6, 2025
1 parent 60d85b6 commit ea78970
Show file tree
Hide file tree
Showing 30 changed files with 4,510 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/node-state-style/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Node State Style example

Here we have an example that demonstrates how NodeState can be used with a
mutation listener to override behavior of any node.

**Run it locally:** `npm i && npm run dev`

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/facebook/lexical/tree/main/examples/node-state-style?file=src/main.tsx)
12 changes: 12 additions & 0 deletions examples/node-state-style/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lexical Node State Example</title>
</head>
<body>
<div id="root"></div>
<script src="/src/main.tsx" type="module"></script>
</body>
</html>
Loading

0 comments on commit ea78970

Please sign in to comment.