App Stores
A component for displaying app store buttons
Loading...
npx shadcn@latest add https://ui.sikka.io/r/app-stores.json
npx shadcn@latest add https://ui.sikka.io/r/app-stores.json
pnpm dlx shadcn@latest add https://ui.sikka.io/r/app-stores.json
bunx --bun shadcn@latest add https://ui.sikka.io/r/app-stores.json
Usage
The AppStores component displays either an Apple App Store or Google Play store button based on the store prop.
Import
import { AppStores } from "@components/naseem-ui/elements/app-stores";Basic Example
// Apple App Store button with click handler
<AppStores
store="apple"
onClick={() => console.log('App Store button clicked')}
/>
// Google Play button with click handler
<AppStores
store="google"
onClick={() => console.log('Google Play button clicked')}
/>Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
| store | "apple" | "google" | Yes | - | Determines which app store button to display |
| onClick | React.MouseEventHandler<HTMLDivElement> | No | - | Click handler for the button |
Styling
The component comes with default styling but can be customized by wrapping it in a container with your own classes. The buttons have the following dimensions:
- Width: 192px (12rem)
- Height: 56px (3.5rem)
The component uses the following Tailwind classes by default:
flex justify-centerfor the containerrounded-lgfor button corners- Appropriate dark mode styling