InputSection
Installation
Section titled “Installation”npm install @sk-web-gui/reactAnvändning
Section titled “Användning”import { InputSection } from '@sk-web-gui/react';| Prop | Typ | Standard | Beskrivning |
|---|---|---|---|
sessionId | string | – | |
onSendQuery | (query: string) => void | – | |
placeholder | InputSectionInputProps['placeholder'] | – | |
onChangeValue | InputSectionInputProps['onChange'] | ChatInputProps['onChangeValue'] | – | |
value | string | – | |
button | React.JSX.Element | – | |
autoFocus | boolean | – | |
toolbar | ChatInputProps['toolbar'] | – | Toolbar - only available with variant “multiline” |
shadow | boolean | – | @default true |
variant | 'multiline' | 'singleline' | – | @default multiline |
isMobile | boolean | – | @default false |
Storyvarianter
Section titled “Storyvarianter”- Template – standardstory
- Implementation: @sk-web-gui/ai
- Storybook: InputSection