@wordpress/components
Version:
UI components for WordPress.
29 lines • 993 B
TypeScript
import type { ForwardedRef } from 'react';
import type { WordPressComponentProps } from '../context';
import type { ElevationProps } from './types';
export declare function UnconnectedElevation(props: WordPressComponentProps<ElevationProps, 'div'>, forwardedRef: ForwardedRef<any>): import("react").JSX.Element;
/**
* `Elevation` is a core component that renders shadow, using the component
* system's shadow system.
*
* The shadow effect is generated using the `value` prop.
*
* ```jsx
* import {
* __experimentalElevation as Elevation,
* __experimentalText as Text,
* } from '@wordpress/components';
*
* function Example() {
* return (
* <div>
* <Text>Code is Poetry</Text>
* <Elevation value={ 5 } />
* </div>
* );
* }
* ```
*/
export declare const Elevation: import("../context").WordPressComponent<"div", ElevationProps & Pick<import("react").RefAttributes<any>, "ref">, true>;
export default Elevation;
//# sourceMappingURL=component.d.ts.map