reaviz
Version:
Data Visualization using React
26 lines (25 loc) • 742 B
TypeScript
import { FC, ReactElement } from 'react';
import { GradientStop, GradientStopProps } from './GradientStop';
export interface RadialGradientProps {
/**
* Unique id for the gradient. Set internally by the parent component.
*/
id: string;
/**
* Gradient stops to render.
*
* @default `[<GradientStop offset="0%" stopOpacity={0.2} />, <GradientStop offset="80%" stopOpacity={0.7} />]`
*/
stops: ReactElement<GradientStopProps, typeof GradientStop>[];
/**
* Base color of the gradient.
*/
color?: string;
/**
* Radius of the gradient.
*
* @default '30%'
*/
radius: number | string;
}
export declare const RadialGradient: FC<Partial<RadialGradientProps>>;