Skip to content

Commit 8d90f52

Browse files
committed
Wrapper divs around conversation slots
1 parent c1beace commit 8d90f52

File tree

1 file changed

+7
-3
lines changed
  • packages/spright-components/src/chat/specs

1 file changed

+7
-3
lines changed

packages/spright-components/src/chat/specs/README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,16 @@ A message is simply a `div` which will styled with background / border / rounded
242242
243243
#### Conversation
244244
245-
Other than setting a background, a conversation has no appearance of its own and simply contains the default slot for messages and the input slot for the chat input.
245+
Other than setting a background, a conversation has no appearance of its own and simply contains the default slot for messages and the input slot for the chat input, along with wrapper `div`s for layout purposes.
246246
247247
```html
248248
<template>
249-
<slot></slot>
250-
<slot name="input"></slot>
249+
<div class="messages">
250+
<slot></slot>
251+
</div>
252+
<div class="input">
253+
<slot name="input"></slot>
254+
</div>
251255
</template>
252256
```
253257

0 commit comments

Comments
 (0)