Add support for disabled chat state in the chat input field. Closes #2761
This commit is contained in:
@@ -58,9 +58,13 @@ const Template: ComponentStory<typeof ChatTextField> = args => (
|
||||
);
|
||||
|
||||
export const Example = Template.bind({});
|
||||
Example.args = {
|
||||
enabled: true,
|
||||
};
|
||||
|
||||
export const LongerMessage = Template.bind({});
|
||||
LongerMessage.args = {
|
||||
enabled: true,
|
||||
defaultText:
|
||||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.',
|
||||
};
|
||||
@@ -72,3 +76,16 @@ LongerMessage.parameters = {
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const DisabledChat = Template.bind({});
|
||||
DisabledChat.args = {
|
||||
enabled: false,
|
||||
};
|
||||
|
||||
DisabledChat.parameters = {
|
||||
docs: {
|
||||
description: {
|
||||
story: 'Should not allow you to type anything and should state that chat is disabled.',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user