UNPKG

apphouse

Version:

Component library for React that uses observable state management and theme-able components.

31 lines (30 loc) 972 B
import React from 'react'; import { ApphouseComponent } from './component.interfaces'; import { CSSProperties } from 'glamor'; import { ViewProps } from './cross-platform/Views/View'; export interface GradientBackgroundProps extends ViewProps, ApphouseComponent<CSSProperties> { /** * The colors to be used in the gradient mask. */ colors: string[]; /** * Indicates whether the component should take up the full width of the parent container. * @default false */ fullWidth?: boolean; /** * Indicates whether the component should take up the full height of the parent container. * @default false */ fullHeight?: boolean; /** * The content of the component. */ children?: React.ReactNode; /** * Indicates whether the gradient should be radial. * @default false (linear) */ radial?: boolean; } export declare const GradientBackground: React.FC<GradientBackgroundProps>;