Skip to content
Draft
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
9 changes: 9 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"lucide-react": "^0.378.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^5.2.0",
"react-router-dom": "^6.14.0",
"slate": "^0.94.1",
"slate-react": "^0.97.2",
Expand Down
13 changes: 13 additions & 0 deletions src/components/Add-cat/Add-cat.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Button } from "@/components/ui/button"
import { FaPlus } from "react-icons/fa";
import "./button-add-cat.css"

const AddButton = () =>{
return(
<>
<Button className="button" variant="outline"><FaPlus /> Add cat</Button>
</>
)
}

export default AddButton
23 changes: 23 additions & 0 deletions src/components/Add-cat/Add-cat.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import type { Meta,StoryObj } from '@storybook/react';

import AddButton from './Add-cat';

const meta: Meta<typeof AddButton> = {
component: AddButton,
};

export default meta;
type Story = StoryObj<typeof AddButton>;

/*
*👇 Render functions are a framework specific feature to allow you control on how the component renders.
* See https://storybook.js.org/docs/api/csf
* to learn how to use render functions.
*/
export const Primary: Story = {
render: () => <AddButton />,
};

export const WithLabel: Story = {
render: () => <AddButton label="outro texto aqui!" />,
};
3 changes: 3 additions & 0 deletions src/components/Add-cat/button-add-cat.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.button{
border-radius: 20px;
}
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

3 changes: 3 additions & 0 deletions src/pages/home.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import AddButton from "@/components/Add-cat/Add-cat";


export const HomePage = () => {
return (
<div>
<h1>Home Page</h1>
<AddButton/>
</div>
);
}