Skip to content

Commit

Permalink
Add value example
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed May 21, 2021
1 parent e9e04cf commit ac20274
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/components/src/elevation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,15 @@ Dimensional offsets (margin) for the shadow.

Size of the shadow, based on the Style system's elevation system. The `value` determines the strength of the shadow, which sense of depth.
In the example below, `isInteractive` is activated to give a better sense of depth.

```jsx
import { __experimentalElevation as Elevation } from '@wordpress/components';

function Example() {
return (
<div>
<Elevation isInteractive value={ 200 } />
</div>
);
}
```

0 comments on commit ac20274

Please sign in to comment.