Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lbebber committed Oct 2, 2019
1 parent 52fa2dd commit 2d18697
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
13 changes: 12 additions & 1 deletion 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' }
```
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 2d18697

Please sign in to comment.