managarten/apps-archived/moodlit/apps/mobile/components/Button.tsx
Till-JS ace7fa8f7f chore: archive finance, mail, moodlit apps and rename voxel-lava
- Move finance, mail, moodlit to apps-archived for later development
- Rename games/voxel-lava to games/voxelava

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-05 13:13:15 +01:00

25 lines
642 B
TypeScript

import { forwardRef } from 'react';
import { Text, Pressable, PressableProps, View } from 'react-native';
type ButtonProps = {
title: string;
} & PressableProps;
export const Button = forwardRef<View, ButtonProps>(({ title, ...pressableProps }, ref) => {
return (
<Pressable
ref={ref}
{...pressableProps}
className={`${styles.button} ${pressableProps.className}`}
>
<Text className={styles.buttonText}>{title}</Text>
</Pressable>
);
});
Button.displayName = 'Button';
const styles = {
button: 'items-center bg-indigo-500 rounded-[28px] shadow-md p-4',
buttonText: 'text-white text-lg font-semibold text-center',
};