-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import { LogginCard } from "./LogginCard"; | ||
|
||
const meta: Meta<typeof LogginCard> = { | ||
title: "Components/LogginCard", | ||
component: LogginCard, | ||
args: { | ||
style: { width: "600px", height: "300px" }, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Default: StoryObj<typeof LogginCard> = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { Slot } from "@radix-ui/react-slot"; | ||
import React, { type ComponentPropsWithRef, forwardRef } from "react"; | ||
import { cn } from "~/libs/utils"; | ||
import { Button } from "./Button"; | ||
import { Card } from "./Card"; | ||
import { Input } from "./Input"; | ||
|
||
export interface LogginCardProps extends ComponentPropsWithRef<"div"> { | ||
asChild?: boolean; | ||
} | ||
|
||
export const LogginCard = forwardRef<HTMLDivElement, LogginCardProps>( | ||
({ className }) => { | ||
return ( | ||
<Card className={cn("flex flex-col items-center gap-y-4 p-4", className)}> | ||
<h1 className={"text-2xl drop-shadow-base"}>名前を入力して登録!</h1> | ||
<Input placeholder="名前" /> | ||
<Button type="submit">登録</Button> | ||
</Card> | ||
); | ||
}, | ||
); |