Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lbebber committed Oct 3, 2019
1 parent 5c483c3 commit 0e4f1e9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Utility for generating CSS handles for store components.

🚧 Under Construction 🚧

### Usage
## Usage

```tsx
import React, { FunctionComponent } from 'react'
Expand Down Expand Up @@ -35,3 +35,14 @@ const Component: FunctionComponent = () => {
)
}
```

### Options

- `migrationFrom`: Adds additional CSS handles for cases where a component is migrating from another app.

#### Usage:
```tsx
const CSS_HANDLES = ['container']
const handles = useCssHandles(CSS_HANDLES, { migrationFrom: '[email protected]' })
// Returns { container: 'vtex-current-app-0-x-container vtex-store-components-2-x-container' }
```

0 comments on commit 0e4f1e9

Please sign in to comment.