CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-react-native-paper

Material Design component library for React Native applications with comprehensive theming and cross-platform support.

Pending
Overview
Eval results
Files

progress-status.mddocs/

Progress & Status

Components for showing loading states, progress, and status information.

Capabilities

ActivityIndicator

Loading spinner component with customizable size and color.

function ActivityIndicator(props: ActivityIndicatorProps): JSX.Element;

interface ActivityIndicatorProps {
  animating?: boolean;
  color?: string;
  size?: number | 'small' | 'large';
  hidesWhenStopped?: boolean;
  style?: StyleProp<ViewStyle>;
  theme?: ThemeProp;
}

ProgressBar

Horizontal progress indicator for showing task completion.

function ProgressBar(props: ProgressBarProps): JSX.Element;

interface ProgressBarProps {
  progress: number;
  color?: string;
  indeterminate?: boolean;
  visible?: boolean;
  style?: StyleProp<ViewStyle>;
  theme?: ThemeProp;
}

Banner

Information banner for displaying important messages.

function Banner(props: BannerProps): JSX.Element;

interface BannerProps {
  children: React.ReactNode;
  visible: boolean;
  actions: Array<{
    label: string;
    onPress: () => void;
    mode?: 'text' | 'outlined' | 'contained';
    loading?: boolean;
    disabled?: boolean;
  }>;
  icon?: IconSource;
  onShowAnimationFinished?: () => void;
  onHideAnimationFinished?: () => void;
  contentStyle?: StyleProp<ViewStyle>;
  style?: StyleProp<ViewStyle>;
  theme?: ThemeProp;
}

Usage Examples:

import React, { useState } from 'react';
import { ActivityIndicator, ProgressBar, Banner } from 'react-native-paper';

// Activity Indicator
<ActivityIndicator animating={true} size="large" />
<ActivityIndicator animating={loading} color="#6200EE" />

// Progress Bar
<ProgressBar progress={0.5} color="#6200EE" />
<ProgressBar indeterminate color="red" />

// Banner
function BannerExample() {
  const [visible, setVisible] = useState(true);

  return (
    <Banner
      visible={visible}
      actions={[
        {
          label: 'Fix it',
          onPress: () => setVisible(false),
        },
        {
          label: 'Learn more',
          onPress: () => setVisible(false),
        },
      ]}
      icon="alert"
    >
      There was a problem processing a transaction on your credit card.
    </Banner>
  );
}

Install with Tessl CLI

npx tessl i tessl/npm-react-native-paper

docs

buttons-actions.md

cards-surfaces.md

form-controls.md

index.md

lists-data-display.md

navigation.md

overlays-feedback.md

progress-status.md

provider-theming.md

react-navigation.md

typography-display.md

tile.json