Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shop3/polaris-strapi

Collection of Polaris components ready to use with Strapi in Shopify applications.
https://github.com/shop3/polaris-strapi

polaris react shopify strapi

Last synced: 10 days ago
JSON representation

Collection of Polaris components ready to use with Strapi in Shopify applications.

Awesome Lists containing this project

README

        

# Shop3 Polaris Strapi

Collection of Polaris components ready to use with Strapi in Shopify applications.

## Installation

```bash
npm install --save @shop3/polaris-strapi
```

## Storybook

Components are documented in Storybook at https://shop3.github.io/polaris-strapi/

# Usage

## Strapi Edit

```jsx
import { Card } from '@shopify/polaris';
import { StrapiEdit } from '@shop3/polaris-strapi';

const App = () => {
return (


{/* text input */}

{/* text input */}

{/* number input */}

{/* media input */}

{/* enum input */}



);
};
```

## Strapi List

```jsx
import { TextContainer } from '@shopify/polaris';
import { StrapiList, StrapiListFilter, StrapiListItem, StrapiListText } from '@shop3/polaris-strapi';

const App = () => {
return (

}
>







);
};
```

## Strapi Show

```jsx
import { Card, Layout } from '@shopify/polaris';
import { StrapiShowPage, StrapiShowText } from '@shop3/polaris-strapi';

const App = () => {
return (












);
};
```

# Development

## Installation

```bash
npm install

npm run husky:install
```

## Development

```bash
npm run develop
```