File tree 1 file changed +24
-2
lines changed
1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -5,20 +5,42 @@ Reusable Svelte components.
5
5
## Installation
6
6
7
7
```
8
+ # With npm
8
9
npm add @nostr-dev-kit/ndk-svelte-components
10
+
11
+ # With pnpm
12
+ pnpm add @nostr-dev-kit/ndk-svelte-components
13
+
14
+ # With yarn
15
+ yarn install @nostr-dev-kit/ndk-svelte-components
9
16
```
10
17
11
18
## Storybook
12
19
20
+ This project uses ` pnpm ` to manage dependencies.
21
+
13
22
```
14
23
git clone https://github.com/nostr-dev-kit/ndk-svelte-components
15
24
cd ndk-svelte-components
16
- npm i
17
- npm run storybook
25
+ pnpm i
26
+ pnpm run storybook
18
27
```
19
28
20
29
# Components
21
30
31
+ ## Event
32
+
33
+ ### ` <EventCard> `
34
+
35
+ Displays a card with formatted event content.
36
+
37
+ ### ` <EventContent> `
38
+
39
+ Formats the content of an event for an ` EventCard ` . Currently supports:
40
+
41
+ - kind 1 events
42
+ - Embedded kind 1 events in other kind 1 events
43
+
22
44
## User
23
45
24
46
### ` <Avatar> `
You can’t perform that action at this time.
0 commit comments