Skip to content

Commit

Permalink
Update viewport.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiuch committed Mar 2, 2024
1 parent 332ed76 commit ee4ed87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/docs/fixtures/viewport.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# `<Viewport>`

By using the Viewport decorator a fixture can trigger the responsive preview in the Cosmos UI on a specific resolution.
Using the Viewport decorator in a fixture triggers the responsive preview on a specific resolution in the Cosmos UI.

```jsx
```jsx filename="MyComponent.fixture.jsx"
import { Viewport } from 'react-cosmos/client';

export default (
Expand Down

0 comments on commit ee4ed87

Please sign in to comment.