Skip to content

Commit

Permalink
Add some helpful guides to README
Browse files Browse the repository at this point in the history
  • Loading branch information
ahkhanjani authored and guilhermerodz committed Mar 6, 2024
1 parent 239ac4c commit 1398f59
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,20 @@ export function cn(...inputs: ClassValue[]) {
}
```

To add Tailwind autocompelete for `containerClassname` attribute in VS Code add the following setting to `.vscode/settings.json`:

```json
{
"tailwindCSS.classAttributes": ["class", "className", ".*ClassName"]
}
```

If you're using shadcn/ui and experiencing a border on input focus, add this class to your input:

```tsx
<OTPInput className="focus-visible:ring-0" />
```

## How it works

There's currently no native OTP/2FA/MFA input in HTML, which means people are either going with 1. a simple input design or 2. custom designs like this one.
Expand Down

0 comments on commit 1398f59

Please sign in to comment.