Skip to content

Commit

Permalink
feat(component): add input preview component
Browse files Browse the repository at this point in the history
  • Loading branch information
ruru-m07 committed Jul 28, 2024
1 parent f9cb1d2 commit bdb8aec
Show file tree
Hide file tree
Showing 3 changed files with 169 additions and 162 deletions.
13 changes: 13 additions & 0 deletions apps/www/components/preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Button } from "ruru-ui/components/button";
import { Spinner } from "ruru-ui/components/spinner";
import { Avatar } from "ruru-ui/components/avatar";
import { Checkbox } from "ruru-ui/components/checkbox";
import { Input } from "ruru-ui/components/input";
import {
Tooltip,
TooltipContent,
Expand All @@ -13,6 +14,7 @@ import {
} from "ruru-ui/components/tooltip";

import { BadgePreview } from "../badgePreview";
import { PersonIcon } from "@radix-ui/react-icons";

export default {
button: (
Expand Down Expand Up @@ -88,4 +90,15 @@ export default {
</div>
</Wrapper>
),
input: (
<Wrapper>
<div className="flex items-center justify-center gap-4">
<Input
prefix={"https://"}
suffix={".com"}
placeholder="Enter your domain name"
/>
</div>
</Wrapper>
),
} as Record<string, ReactNode>;
Loading

0 comments on commit bdb8aec

Please sign in to comment.