@wordpress/components
Version:
UI components for WordPress.
22 lines • 584 B
TypeScript
export default Elevation;
/**
* `Elevation` is a core component that renders shadow, using the library's shadow system.
*
* The shadow effect is generated using the `value` prop.
*
* @example
* ```jsx
* import { Elevation, Surface, Text, View } from `@wordpress/components/ui`;
*
* function Example() {
* return (
* <Surface>
* <Text>Code is Poetry</Text>
* <Elevation value={ 5 } />
* </Surface>
* );
* }
* ```
*/
declare const Elevation: import("../context").PolymorphicComponent<"div", import("./types").Props>;
//# sourceMappingURL=component.d.ts.map