-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from ariflogs/new-install-guide
New install guide
- Loading branch information
Showing
25 changed files
with
403 additions
and
65 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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,13 @@ | ||
import { cn } from "@/lib/utils"; | ||
|
||
interface ComponentSourceProps extends React.HTMLAttributes<HTMLDivElement> { | ||
src: string; | ||
} | ||
|
||
export function ComponentSource({ children, className }: ComponentSourceProps) { | ||
return ( | ||
<div className={cn("overflow-hidden rounded-md", className)}> | ||
{children} | ||
</div> | ||
); | ||
} |
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
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
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
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 |
---|---|---|
@@ -1,11 +1,44 @@ | ||
--- | ||
title: Avatar | ||
description: Default rounded avatar that can show your users profile picture. ✨ | ||
lastUpdated: 08 Oct, 2024 | ||
lastUpdated: 12 Oct, 2024 | ||
--- | ||
|
||
### Circle | ||
<ComponentShowcase name="avatar-style-circle" /> | ||
<br /> | ||
<br /> | ||
|
||
## Installation | ||
|
||
#### 1. Install dependencies: | ||
|
||
```sh | ||
npm install @radix-ui/react-avatar | ||
``` | ||
|
||
<hr /> | ||
<br /> | ||
<ComponentShowcase name="avatar-style-circle" /> | ||
|
||
#### 2. Copy the code 👇 into your project: | ||
|
||
<ComponentSource name="avatar" /> | ||
|
||
<br /> | ||
<br /> | ||
|
||
## Examples | ||
|
||
### Size variants | ||
|
||
<ComponentShowcase name="avatar-style-circle-sizes" /> | ||
|
||
<br /> | ||
<br /> | ||
|
||
### Fallbacks | ||
|
||
Fallbacks are helpfull when there ia an error loading the src of the avatar. | ||
You can set fallbacks with `Avatar.Fallback` component. | ||
|
||
<br /> | ||
|
||
<ComponentShowcase name="avatar-style-circle-fallbacks" /> |
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 |
---|---|---|
@@ -1,11 +1,31 @@ | ||
--- | ||
title: Button | ||
description: This bold button makes sure your users click on it and perform the actions you want! 🚀 | ||
lastUpdated: 30 Sep, 2024 | ||
lastUpdated: 12 Oct, 2024 | ||
--- | ||
|
||
### Default | ||
<ComponentShowcase name="button-style-default" /> | ||
<br /> | ||
<br /> | ||
|
||
## Installation | ||
|
||
#### 1. Install dependencies: | ||
|
||
```sh | ||
npm install class-variance-authority | ||
``` | ||
|
||
<hr /> | ||
<br /> | ||
|
||
#### 2. Copy the code 👇 into your project: | ||
|
||
<ComponentSource name="button" /> | ||
<br /> | ||
<br /> | ||
|
||
## Examples | ||
|
||
### Default | ||
|
||
<ComponentShowcase name="button-style-default" /> |
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
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
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
Oops, something went wrong.