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

feat(ui): added Polaris Button Secondary #372

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

NishantSinghhhhh
Copy link

I Have added a New PR for Polaris Button

Recording.2024-10-16.005955.mp4

This is the preview of the Button I have added

Copy link

🚀 Preview deployed to: https://bf807c99.animata.pages.dev

Comment on lines +12 to +30
<Step>Install dependencies</Step>

```bash
npm install framer-motion lucide-react
```

<Step>Update `tailwind.config.js`</Step>

Add the following to your tailwind.config.js file.

```json
module.exports = {
theme: {
extend: {
}
}
}
```

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove these as you don't need them

Comment on lines +19 to +20
className={`h-12 w-40 rounded-xl border border-gray-300 bg-white px-4 py-2 font-semibold text-black transition-all duration-200 ease-in-out ${isClicked ? "border-t-4 border-gray-300" : "border-b-2 border-gray-300"}`}
onClick={handleClick}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of tracking click manually, you can use active:border-t-4 active:border-gray-300

---
title: Polaris Button Secondary
description: It is a clickable button
author: YourTwitterUsername
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this to your twitter username

@sudhashrestha sudhashrestha linked an issue Oct 23, 2024 that may be closed by this pull request
7 tasks
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

Successfully merging this pull request may close these issues.

Polaris button
2 participants