From 4b433803b3e4f783c7496925c93c3e285abe8c29 Mon Sep 17 00:00:00 2001 From: mrderyk Date: Fri, 23 Feb 2024 16:06:58 -0800 Subject: [PATCH] chore: Update README with new props (#8) --- README.md | 11 ++++++++--- docs/src/index.tsx | 4 ---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 68e9b54..c60ea6f 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,9 @@ import { ReactChatbot } from "@vectara/react-chatbot"; apiKey="API_KEY" title="My Chatbot" placeholder="Chat with your AI assistant" + inputSize="large" emptyStateDisplay={} - isOpened={false} + isInitiallyOpen={false} />; ``` @@ -75,9 +76,13 @@ Configure the placeholder text in the chatbot's input. Configure JSX content to render in the messages window when there are no messages to display. -#### `isOpened` (optional) +#### `isInitiallyOpen` (optional) -Configure initial open/closed state of the the chatbot component. +Set the chat window to be opened on initial render. + +#### `inputSize` (optional) + +Used to control the size of the input - either "large" (18px) or "medium" (14px) ### Set up your data diff --git a/docs/src/index.tsx b/docs/src/index.tsx index 8d7477c..fa1df03 100644 --- a/docs/src/index.tsx +++ b/docs/src/index.tsx @@ -175,10 +175,6 @@ const App = () => { - -

Looking for it? It's in the lower-right corner of the screen. 😃

-
- {/** * Here we ensure that if the field is blank, we use the default props that point to the docs page. * This ensures that we don't voluntarily display the docs corpus details in the text fields.