Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changes/add-inputcount-component.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@matechat/react": patch:feat
---

Add `InputCount` component.

-Remove the input count div container and wrap it into a new component, allowing users to customize the input limit.
-Remove the justify-center style from the div container and add ml-auto to the SenderButton to ensure button remains on the right side.
2 changes: 1 addition & 1 deletion src/sender.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function InputCount({
...props
}: InputCountProps) {
return (
<span className={className} {...props}>
<span className={clsx("text-gray-400", className)} {...props}>
{count} / {limit}
</span>
);
Expand Down
Loading