Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@


![Snowfall Demo](./assets/snowfall-demo.gif)

# Solid Snowfall
Expand Down Expand Up @@ -36,13 +38,14 @@ pnpm add solid-snowfall
Basic usage requires no properties - it will grow to fill the nearest relative positioned parent element.

```tsx
import { render } from "solidjs/web";
import SnowFall from "solid-snowfall";
import { render } from "solid-js/web";
import Snowfall from "solid-snowfall";

render(
() => (
<>
<SnowFall />
<Snowfall />
</>
),
document.getElementById("root") as HTMLDivElement,
);
Expand Down Expand Up @@ -124,4 +127,4 @@ If you want the component to cover the entire screen then you can change the pos
left: 0
}}
/>
```
```