This commit is contained in:
Ubuntu
2026-07-03 16:58:28 +08:00
commit 32b43f85bd
6240 changed files with 1987678 additions and 0 deletions
@@ -0,0 +1,41 @@
---
title: Accordion
description: This collapsible component let's your users read only the content they care about. 😌
lastUpdated: 19 Oct, 2024
links:
api_reference: https://www.radix-ui.com/primitives/docs/components/accordion#api-reference
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Accordion.tsx
---
<ComponentShowcase name="accordion-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/accordion" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-accordion lucide-react
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="accordion" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="accordion-style-default" />
+56
View File
@@ -0,0 +1,56 @@
---
title: Alert
description: Notify your users about important events and updates. 📣
lastUpdated: 24 Oct, 2024
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Alert.tsx
---
<ComponentShowcase name="alert-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/alert" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install class-variance-authority
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="alert" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="alert-style-default" />
<br />
<br />
### Solid
<ComponentShowcase name="alert-style-solid" />
<br />
<br />
### With Icon
<ComponentShowcase name="alert-style-with-icon" />
<br />
<br />
### Status
<ComponentShowcase name="alert-style-all-status" />
@@ -0,0 +1,50 @@
---
title: Avatar
description: Default rounded avatar that can show your users profile picture. ✨
lastUpdated: 12 Oct, 2024
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Avatar.tsx
---
<ComponentShowcase name="avatar-style-circle" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/avatar" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-avatar
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="avatar" />
</ComponentInstall.Manual>
</ComponentInstall>
<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" />
+60
View File
@@ -0,0 +1,60 @@
---
title: Badge
description: The component that looks like a button but isn't clickable!
lastUpdated: 30 Oct, 2024
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Badge.tsx
---
<ComponentShowcase name="badge-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/badge" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install class-variance-authority
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="badge" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<hr />
<br />
<ComponentShowcase name="badge-style-default" />
<br />
<br />
### Variants
<hr />
<br />
<ComponentShowcase name="badge-style-variants" />
<br />
<br />
### Rounded
<ComponentShowcase name="badge-style-rounded" />
<br />
<br />
### Sizes
<ComponentShowcase name="badge-style-sizes" />
@@ -0,0 +1,66 @@
---
title: Breadcrumb
description: A navigation component that shows users where they are within a hierarchy.
lastUpdated: 12 May, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Breadcrumb.tsx
---
<ComponentShowcase name="breadcrumb-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/breadcrumb" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install lucide-react class-variance-authority
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="breadcrumb" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<hr />
<br />
<ComponentShowcase name="breadcrumb-style-default" />
<br />
<br />
### Custom Separator
<hr />
<br />
<ComponentShowcase name="breadcrumb-custom-separator" />
<br />
<br />
### Collapsed
<hr />
<br />
<ComponentShowcase name="breadcrumb-style-collapsed" />
<br />
<br />
### Link Component
<hr />
<br />
<ComponentShowcase name="breadcrumb-link-component" />
<br />
<br />
@@ -0,0 +1,68 @@
---
title: Button
description: This bold button makes sure your users click on it and perform the actions you want! 🚀
lastUpdated: 17 Oct, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Button.tsx
---
<ComponentShowcase name="button-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/button" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install class-variance-authority
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="button" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Primary
<ComponentShowcase name="button-style-default" />
<br />
<br />
### Secondary
<ComponentShowcase name="button-style-secondary" />
<br />
<br />
### Outline
<ComponentShowcase name="button-style-outline" />
<br />
<br />
### Link
<ComponentShowcase name="button-style-link" />
<br />
<br />
### Icon
<ComponentShowcase name="button-style-icon" />
<br />
<br />
### With Icon
<ComponentShowcase name="button-style-with-icon" />
@@ -0,0 +1,39 @@
---
title: Calendar
description: Let your users select a date to cancel subscription.
lastUpdated: 14 Nov, 2025
---
<ComponentShowcase name="calendar-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/calendar" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install react-day-picker lucide-react
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="calendar" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="calendar-style-default" />
+51
View File
@@ -0,0 +1,51 @@
---
title: Card
description: A customizable card component to visualize your content. 📝
lastUpdated: 09 Sep, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Card.tsx
---
<ComponentShowcase name="card-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/card" />
<ComponentInstall.Manual>
#### Copy the code 👇 into your project:
<ComponentSource name="card" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Title with description
<ComponentShowcase name="card-style-default" />
<br />
<br />
### Product card
<ComponentShowcase name="card-style-commerce" />
<br />
<br />
### Testimonial card
<ComponentShowcase name="card-style-testimonial" />
<br />
<br />
### Retro player card
<ComponentShowcase name="retro-player" />
@@ -0,0 +1,54 @@
---
title: Carousel
description: Let your users select a date to cancel subscription.
lastUpdated: 14 Nov, 2025
---
<ComponentShowcase name="carousel-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/carousel" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install react-day-picker lucide-react
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="carousel" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="carousel-style-default" />
<br />
<br />
### Sizes
<ComponentShowcase name="carousel-style-sizes" />
<br />
<br />
### Vertical
<ComponentShowcase name="carousel-style-vertical" />
@@ -0,0 +1,48 @@
---
title: Checkbox
description: Let users confirm or reject an option.
lastUpdated: 13 Feb, 2024
links:
api_reference: https://www.radix-ui.com/primitives/docs/components/checkbox#api-reference
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Checkbox.tsx
---
<ComponentShowcase name="checkbox-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/checkbox" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-checkbox class-variance-authority lucide-react
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="checkbox" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Variants
<ComponentShowcase name="checkbox-style-variants" />
<br />
<br />
### Sizes
<ComponentShowcase name="checkbox-style-sizes" />
@@ -0,0 +1,40 @@
---
title: Command
description: A command palette component for quick navigation and actions
lastUpdated: 21 Aug, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Command.tsx
---
<ComponentShowcase name="command-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/command" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install class-variance-authority cmdk
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="command" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Dialog
<ComponentShowcase name="command-style-dialog" />
<br />
<br />
@@ -0,0 +1,32 @@
---
title: Context Menu
description: Displays a menu to the user — such as a set of actions or functions — triggered by a button.
lastUpdated: 09 Sep, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/ContextMenu.tsx
---
<ComponentShowcase name="context-menu-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/context-menu" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install class-variance-authority
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="context-menu" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
@@ -0,0 +1,74 @@
---
title: Dialog
description: An impactful dialog that ensures your important messages and actions get the attention they deserve! 💬✨
lastUpdated: 09 Sep, 2025
links:
api_reference: https://www.radix-ui.com/primitives/docs/components/dialog#api-reference
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Dialog.tsx
---
<ComponentShowcase name="dialog-style-default" />
<br />
<br />
## Instalation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/dialog" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-dialog @radix-ui/react-visually-hidden tailwindcss-animate
```
<br />
#### 2. Configure your `tailwind.config.ts` add:
```sh
{
content: [...],
theme: [...],
// add plugin
plugins: [require("tailwindcss-animate")],
}
```
#### 3. Copy the code 👇 into your project:
<ComponentSource name="dialog" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Example
### Confirm dialog message
<ComponentShowcase name="dialog-style-default" />
<br />
<br />
### With footer
<ComponentShowcase name="dialog-style-with-footer" />
<br />
<br />
### Size variants
<ComponentShowcase name="dialog-style-width-variant" />
<br />
<br />
### With form
<ComponentShowcase name="dialog-style-with-form" />
@@ -0,0 +1,46 @@
---
title: Drawer
description: A component that can slide in from any side of the screen.
lastUpdated: 21 Aug, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Command.tsx
---
<ComponentShowcase name="drawer-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/drawer" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install vaul
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="drawer" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="drawer-style-default" />
<br />
<br />
### Different Direction
<ComponentShowcase name="drawer-style-right-direction" />
<br />
<br />
+70
View File
@@ -0,0 +1,70 @@
---
title: Empty
description: The component that shows when there is no data to show!
lastUpdated: 13 Jan, 2026
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Empty.tsx
---
<ComponentShowcase name="empty-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/empty" />
<ComponentInstall.Manual>
#### Copy the code 👇 into your project:
<ComponentSource name="empty" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="empty-style-default" />
<br />
<br />
### Custom Icon
<ComponentShowcase name="empty-style-custom-icon" />
<br />
<br />
### Customize everything
<ComponentShowcase name="empty-style-custom-everything" />
<br />
<br />
### Using with table
<ComponentShowcase name="empty-style-table" />
<br />
<br />
## API Reference
The Empty component is composed of several sub-components:
<br />
- `Empty` - The main component wrapper
- `Empty.Content` - Wrapper for the content elements
- `Empty.Icon` - Section for displaying an icon
- `Empty.Title` - The main heading for the empty state
- `Empty.Separator` - A visual separator line
- `Empty.Description` - Supporting text for the empty state
+46
View File
@@ -0,0 +1,46 @@
---
title: Input
description: This pretty input makes your users want to type stuff! ⌨️
lastUpdated: 09 Sep, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Input.tsx
---
<ComponentShowcase name="input-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/input" />
<ComponentInstall.Manual>
#### 1. Copy the code 👇 into your project:
<ComponentSource name="input" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="input-style-default" />
<br />
<br />
### With label
<ComponentShowcase name="input-style-with-label" />
<br />
<br />
### Error
<ComponentShowcase name="input-style-error" />
<br />
+38
View File
@@ -0,0 +1,38 @@
---
title: Label
description: A universal component for labeling various inputs.
lastUpdated: 09 Sep, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Label.tsx
---
<ComponentShowcase name="label-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/label" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-label
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="label" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Usage
```tsx
import { Label } from "@/components/retroui/Label";
```
+145
View File
@@ -0,0 +1,145 @@
---
title: Loader
description: A customizable loading indicator with bouncing squares. 🔄
lastUpdated: 20 Aug, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Loader.tsx
---
<ComponentShowcase name="loader-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/loader" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install class-variance-authority
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="loader" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="loader-style-default" />
<br />
<br />
### Secondary
<ComponentShowcase name="loader-style-solid" />
<br />
<br />
### Outline
<ComponentShowcase name="loader-style-outline" />
<br />
<br />
### Sizes
<ComponentShowcase name="loader-style-sizes" />
<br />
<br />
### Custom Configurations
<ComponentShowcase name="loader-style-custom" />
<br />
<br />
## Usage
```tsx
import { Loader } from "@/components/ui/loader"
// Default
<Loader />
// With variants
<Loader variant="secondary" size="lg" />
// Custom configuration
<Loader
count={4} // Number of squares
duration={1.2} // Animation duration in seconds
delayStep={120} // Delay between squares in milliseconds
/>
// Fully customized
<Loader
variant="secondary"
size="lg"
count={4}
duration={1.2}
delayStep={120}
className="my-4"
/>
```
## Props
- - `variant`
* Type: `default` | `secondary` | `outline`
* Default: `default`
* Description: Defines the style variant for the component
- - `size`
* Type: `sm` | `md` | `lg`
* Default: `md`
* Description: Controls the size of the loader squares
- - `count`
* Type: `number`
* Default: `3`
* Description: Sets the number of bouncing squares
- - `duration`
* Type: `number`
* Default: `0.5`
* Description: Controls the animation duration in seconds
- - `delayStep`
* Type: `number`
* Default: `100`
* Description: Defines the delay between squares in milliseconds
- - `className`
* Type: `string`
* Default: `undefined`
* Description: Allows for adding additional CSS classes for custom styling
- - `asChild`
* Type: `boolean`
* Default: `false`
* Description: When `true`, merges the component's props onto its immediate child element
## Accessibility
The Loader component includes the following attributes:
- `role="status"`
- `aria-label="Loading..."`
This ensures screen readers can properly announce the loading state to users.
+40
View File
@@ -0,0 +1,40 @@
---
title: Menu
description: Show your users a list of actions they can take. 📋
lastUpdated: 09 Sep, 2025
links:
api_reference: https://www.radix-ui.com/primitives/docs/components/dropdown-menu#api-reference
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Menu.tsx
---
<ComponentShowcase name="menu-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/menu" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-dropdown-menu
```
#### 2. Copy the code 👇 into your project:
<ComponentSource name="menu" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="menu-style-default" />
@@ -0,0 +1,66 @@
---
title: Popover
description: A handy small component for your little input needs...😉
lastUpdated: 09 Sep, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Popover.tsx
---
<ComponentShowcase name="popover-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/popover" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-popover
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="popover" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Usage
```typescript
import {
Popover,
PopoverContent,
PopoverTrigger,
} from "@/components/retroui/Popover";
```
```typescript
<Popover>
<PopoverTrigger>Open</PopoverTrigger>
<PopoverContent>Place content for the popover here.</PopoverContent>
</Popover>
```
<br />
<br />
## Examples
### Default
<ComponentShowcase name="popover-style-default" />
<br />
<br />
### Shadowed
<ComponentShowcase name="popover-style-default-shadow" />
<br />
<br />
@@ -0,0 +1,41 @@
---
title: Progress
description: Let's you users know how long to wait.
lastUpdated: 09 Sep, 2025
links:
api_reference: https://www.radix-ui.com/docs/primitives/components/progress#api-reference
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Progress.tsx
---
<ComponentShowcase name="progress-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/progress" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-progress lucide-react
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="progress" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="progress-style-default" />
+48
View File
@@ -0,0 +1,48 @@
---
title: Radio
description: Sometimes you need to pick multiple options! That's where the Radio component comes into play.
lastUpdated: 09 Sep, 2025
links:
api_reference: https://www.radix-ui.com/primitives/docs/components/radio-group#api-reference
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Radio.tsx
---
<ComponentShowcase name="radio-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/radio" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-radio-group class-variance-authority
```
#### 2. Copy the code 👇 into your project:
<ComponentSource name="radio" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Variants
<ComponentShowcase name="radio-style-variants" />
<br />
<br />
### Sizes
<ComponentShowcase name="radio-style-sizes" />
<br />
<br />
@@ -0,0 +1,42 @@
---
title: Select
description: Let your users pick what they want.
lastUpdated: 09 Sep, 2025
links:
api_reference: https://www.radix-ui.com/primitives/docs/components/select#api-reference
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Select.tsx
---
<ComponentShowcase name="select-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/select" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-select class-variance-authority
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="select" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="select-style-default" />
@@ -0,0 +1,42 @@
---
title: Slider
description: A customizable slider component with two variants.
lastUpdated: 09 Sep, 2025
links:
api_reference: https://www.radix-ui.com/docs/primitives/components/slider#api-reference
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Slider.tsx
---
<ComponentShowcase name="slider-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/slider" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-slider
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="slider" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="slider-style-default" />
@@ -0,0 +1,78 @@
---
title: Sonner
description: A beautiful toast component that can grab audience attention from any place.
lastUpdated: 09 Sep, 2025
links:
api_reference: https://sonner.emilkowal.ski/toast#api-reference
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Sonner.tsx
---
<ComponentShowcase name="sonner-style-default" />
<br />
<br />
## About
[Sonner](https://sonner.emilkowal.ski) is built and maintained by [Emil Kowalski](https://x.com/emilkowalski_)
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/sonner" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install sonner
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="sonner" />
<br/>
### 3. Add ``Toaster`` in your ``app/layout.tsx``
```tsx
import { Toaster } from "@/components/retroui/sonner"
export default function RootLayout({ children }) {
return (
<html lang="en">
<head />
<body>
<main>{children}</main>
<Toaster />
</body>
</html>
)
}
```
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="sonner-style-default" />
<br />
<br />
### Status
<ComponentShowcase name="sonner-style-status" />
<br />
<br />
### Colored Status
<ComponentShowcase name="sonner-style-colored-status" />
@@ -0,0 +1,50 @@
---
title: Switch
description: Let users to turn on or off your marketing emails or notifications.
lastUpdated: 09 Sep, 2025
links:
api_reference: https://www.radix-ui.com/primitives/docs/components/switch#api-reference
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Switch.tsx
---
<ComponentShowcase name="switch-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/switch" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-switch
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="switch" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="switch-style-default" />
<br />
<br />
### Disabled
<ComponentShowcase name="switch-style-disabled" />
<br />
<br />
+13
View File
@@ -0,0 +1,13 @@
---
title: Tabs
description: Switch between different views using tabs.
lastUpdated: 08 Oct, 2024
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Tab.tsx
---
### Default
<hr />
<br />
<ComponentShowcase name="tab-style-default" />
+65
View File
@@ -0,0 +1,65 @@
---
title: Table
description: Display your data in a structured tabular format.
lastUpdated: 14 Nov, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Table.tsx
---
<ComponentShowcase name="table-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/table" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install class-variance-authority
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="table" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="table-style-default" />
<br />
<br />
### With Checkbox Selection
<ComponentShowcase name="table-with-checkbox" />
<br />
<br />
### With Sticky Header
<ComponentShowcase name="table-with-sticky-header" />
<br />
<br />
## API Reference
The Table component is composed of several sub-components:
<br />
- `Table` - The main table wrapper
- `Table.Header` - Table header section (`<thead>`)
- `Table.Body` - Table body section (`<tbody>`)
- `Table.Footer` - Table footer section (`<tfoot>`)
- `Table.Row` - Table row (`<tr>`)
- `Table.Head` - Table header cell (`<th>`)
- `Table.Cell` - Table data cell (`<td>`)
+58
View File
@@ -0,0 +1,58 @@
---
title: Text
description: Show your texts in different styles. 💅
lastUpdated: 09 Sep, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Text.tsx
---
## Headings
The `Text` component is a versatile React component that provides various heading styles. It leverages class-variance-authority for managing variants and allows for the customization of heading elements.
<hr />
<br />
<ComponentShowcase name="text-headings" />
<br />
#### Props
`className`: Additional CSS classes to customize the component's styling.
<br />
`as`: Determines the heading and text style. Default is `p`. Variants include:
- `"h1", "h2", "h3", "h4", "h5", "h6", "p"`
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/text" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install class-variance-authority
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="text" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Paragraph
<ComponentShowcase name="typography-p" />
@@ -0,0 +1,13 @@
---
title: Textarea
description: This pretty input makes your users want to type lots of stuff! ⌨️ ⌨️
lastUpdated: 08 Oct, 2024
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Textarea.tsx
---
### Default
<hr />
<br />
<ComponentShowcase name="textarea-style-default" />
+48
View File
@@ -0,0 +1,48 @@
---
title: Table of Contents
description: Generate a table of contents for your markdown content.
lastUpdated: 08 Oct, 2024
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Tab.tsx
---
<ComponentShowcase name="toc-style-default" />
<br />
<br />
## Installation
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/toc" />
<ComponentInstall.Manual>
#### 1. Copy the code 👇 into your project:
<ComponentSource name="toc" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="toc-style-default" />
<br />
<br />
### Adjust depth
<ComponentShowcase name="toc-style-depth" />
<br />
<br />
### Manual data
<ComponentShowcase name="toc-style-manual" />
<br />
<br />
@@ -0,0 +1,82 @@
---
title: Toggle Group
description: Group of toggling buttons...🤙
lastUpdated: 09 Sep, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/ToggleGroup.tsx
---
<ComponentShowcase name="toggle-group-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/toggle-group" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-toggle-group @radix-ui/react-toggle
```
<br />
#### 2. Copy the code 👇 into your project `toggle.tsx`:
<ComponentSource name="toggle" />
<br />
#### 3. Copy the code 👇 into your project `toggle-group.tsx`:
<ComponentSource name="toggle-group" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Usage
```tsx
import {
ToggleGroup,
ToggleGroupItem,
} from "@/components/retroui/toggle-group";
```
```tsx
<ToggleGroup type="single">
<ToggleGroupItem value="a">A</ToggleGroupItem>
<ToggleGroupItem value="b">B</ToggleGroupItem>
<ToggleGroupItem value="c">C</ToggleGroupItem>
</ToggleGroup>
```
<br />
<br />
## Examples
### Default
<ComponentShowcase name="toggle-group-style-default" />
<br />
<br />
### Outlined
<ComponentShowcase name="toggle-group-style-outlined" />
<br />
<br />
### Solid
<ComponentShowcase name="toggle-group-style-solid" />
<br />
<br />
### Outline Muted
<ComponentShowcase name="toggle-group-style-outline-muted" />
@@ -0,0 +1,56 @@
---
title: Toggle
description: This crazy toggling button keeps people toggling...😃
lastUpdated: 09 Sep, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Toggle.tsx
---
<ComponentShowcase name="toggle-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/toggle" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-toggle
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="toggle" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="toggle-style-default" />
<br />
<br />
### Outlined
<ComponentShowcase name="toggle-style-outlined" />
<br />
<br />
### Solid
<ComponentShowcase name="toggle-style-solid" />
<br />
<br />
### Outline Muted
<ComponentShowcase name="toggle-style-outline-muted" />
@@ -0,0 +1,51 @@
---
title: Tooltip
description: A cool way to give your users a hint of what a component does...😉
lastUpdated: 09 Sep, 2025
links:
source: https://github.com/logging-studio/RetroUI/blob/main/components/retroui/Tooltip.tsx
api_reference: https://www.radix-ui.com/primitives/docs/components/tooltip#api-reference
---
<ComponentShowcase name="tooltip-style-default" />
<br />
<br />
<ComponentInstall>
<ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/tooltip" />
<ComponentInstall.Manual>
#### 1. Install dependencies:
```sh
npm install @radix-ui/react-tooltip
```
<br />
#### 2. Copy the code 👇 into your project:
<ComponentSource name="tooltip" />
</ComponentInstall.Manual>
</ComponentInstall>
<br />
<br />
## Examples
### Default
<ComponentShowcase name="tooltip-style-default" />
<br />
<br />
### Primary
<ComponentShowcase name="tooltip-style-primary" />
<br />
<br />
### Solid
<ComponentShowcase name="tooltip-style-solid" />