@naturacosmeticos/natds-react
Version:
A collection of components from Natura Design System for React
44 lines (43 loc) • 1.16 kB
TypeScript
/// <reference types="react" />
declare type AppBarTopColor = 'default' | 'primary' | 'none' | 'inverse' | 'secondary';
declare type AppBarTopBehaviour = 'fixed' | 'scroll' | 'absolute';
export declare type AppBarProps = {
/**
* If `fixed` the AppBarTop is fixed leaving the content
* scrolling from behind, when using `scroll` it hides
* the AppBarTop when scrolling up and reveals when scrolling
* down
* @default fixed
*/
behaviour?: AppBarTopBehaviour;
/**
* Specify the content of your AppBarTop
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component
*/
className?: string;
/**
* Define de background color
* @default default
*/
color?: AppBarTopColor;
/**
* If `false`, a box-shadow effect are disabled
* @default true
*/
elevation?: boolean;
/**
* Define a semantic role for Assistive Technology
*/
role?: string;
/**
* Optional ID for testing
*/
testID?: string;
};
export declare type AppBarStyleOptions = AppBarProps & {
hide: boolean;
};
export {};