air-command-ui-library
Version:
A React component library for Air Command System with Storybook
34 lines (33 loc) • 908 B
TypeScript
import React from 'react';
export type Theme = 'light' | 'dark';
export type ThemeVariant = Theme;
export type StatusBadgeSize = 'small' | 'medium' | 'large';
export interface BaseComponentProps {
className?: string;
style?: React.CSSProperties;
'data-testid'?: string;
}
export interface User {
name: string;
role?: string;
}
export interface NavbarProps {
title: string;
user?: User;
onLogout?: () => void;
theme?: Theme;
className?: string;
onThemeToggle?: () => void;
currentTheme?: Theme;
logo?: string;
showThemeToggle?: boolean;
showLanguageToggle?: boolean;
onLanguageToggle?: () => void;
currentLanguage?: string;
}
export interface StatusBadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
status: 'friendly' | 'hostile' | 'neutral' | 'unknown';
text?: string;
size?: StatusBadgeSize;
className?: string;
}