Skip to content

Commit

Permalink
feat(playground): @tailwindcss/forms compat (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 25, 2024
1 parent 6fdbf47 commit c8211c1
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 22 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-rockets-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@assistant-ui/react-playground": patch
---

feat: @tailwindcss/forms compat
1 change: 1 addition & 0 deletions examples/with-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@ai-sdk/openai": "^0.0.38",
"@assistant-ui/react": "workspace:*",
"@assistant-ui/react-playground": "workspace:*",
"@tailwindcss/forms": "^0.5.7",
"next": "14.2.5",
"prismjs": "^1.29.0",
"react": "^18",
Expand Down
5 changes: 4 additions & 1 deletion examples/with-playground/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const config = {
],
plugins: [
require("tailwindcss-animate"),
require("@assistant-ui/react/tailwindcss")({ components: ["default-theme"] }),
require("@tailwindcss/forms"),
require("@assistant-ui/react/tailwindcss")({
components: ["default-theme"],
}),
],
} satisfies Config;

Expand Down
2 changes: 1 addition & 1 deletion packages/react-markdown/src/overrides/CodeOverride.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
PreComponent,
SyntaxHighlighterProps,
} from "./types";
import { CodeBlockProps, DefaultCodeBlock } from "./CodeBlock";
import { DefaultCodeBlock } from "./CodeBlock";
import { useCallbackRef } from "@radix-ui/react-use-callback-ref";
import { withDefaultProps } from "./withDefaults";
import { DefaultCodeBlockContent } from "./defaultComponents";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Text: TextContentPartComponent = ({ part }) => {

return (
<TextareaAutosize
className="w-full resize-none outline-none"
className="w-full resize-none border-none p-0 outline-none focus:ring-0"
onChange={handleChange}
value={part.text}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const Composer: FC = () => {
autoFocus
placeholder="Write a message..."
rows={1}
className="placeholder:text-aui-muted-foreground size-full max-h-40 resize-none bg-transparent p-4 pr-24 text-sm outline-none"
className="placeholder:text-aui-muted-foreground size-full max-h-40 resize-none border-none bg-transparent p-4 pr-24 text-sm outline-none focus:ring-0"
onKeyDown={handleKeyDown}
/>
<div className="mx-3 mb-3 mt-0 flex items-end gap-2">
Expand Down
55 changes: 37 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c8211c1

Please sign in to comment.