Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview broken? #28

Open
codeagencybe opened this issue Oct 16, 2023 · 0 comments
Open

Preview broken? #28

codeagencybe opened this issue Oct 16, 2023 · 0 comments

Comments

@codeagencybe
Copy link

Hello

I'm trying to render a simple registration/login modal form.
After it's ready, it's only showing me 2 buttons, no forms.
But if I check the code, everything is there.

I tried with a few components so far, and it keeps repeating this by returning an incomplete preview.
I also tried by iterating changes to it, but it remains same problem./

Example:

image

Code output I got back:

`
import { Button } from '@/components/ui/button';
import { Dialog } from '@/components/ui/dialog';
import { DialogContent } from '@/components/ui/dialog';
import { DialogTrigger } from '@/components/ui/dialog';
import { Input } from '@/components/ui/input';
import { Tabs } from '@/components/ui/tabs';
import { TabsContent } from '@/components/ui/tabs';
import { TabsTrigger } from '@/components/ui/tabs';
import { Lock } from 'lucide-react';
import { Mail } from 'lucide-react';
import { UserCircle2 } from 'lucide-react';
import React from 'react';
"use client";

const RegistrationLoginModal_BHE62: React.FC = () => {

return (


Sign in / Register



Login
Register

      <TabsContent value="login" className="p-4">
        <div className="mb-4 flex items-center">
          <UserCircle2 className="h-4 w-4 mr-2" />
          <Input type="text" placeholder="Username" />
        </div>
        <div className="mb-4 flex items-center">
          <Lock className="h-4 w-4 mr-2" />
          <Input type="password" placeholder="Password" />
        </div>
        <Button variant="outline" className="w-full">Login</Button>
      </TabsContent>

      <TabsContent value="register" className="p-4">
        <div className="mb-4 flex items-center">
          <UserCircle2 className="h-4 w-4 mr-2" />
          <Input type="text" placeholder="Username" />
        </div>
        <div className="mb-4 flex items-center">
          <Mail className="h-4 w-4 mr-2" />
          <Input type="email" placeholder="Email" />
        </div>
        <div className="mb-4 flex items-center">
          <Lock className="h-4 w-4 mr-2" />
          <Input type="password" placeholder="Password" />
        </div>
        <div className="mb-4 flex items-center">
          <Lock className="h-4 w-4 mr-2" />
          <Input type="password" placeholder="Confirm Password" />
        </div>
        <Button variant="outline" className="w-full bg-green-500 text-white">Register</Button>
      </TabsContent>
    </Tabs>
  </DialogContent>
</Dialog>

);
};

export default RegistrationLoginModal_BHE62;
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant