3.1.0 • Published 26 days ago

@storybook/components-marketing v3.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
26 days ago

Storybook Marketing Component Library

UI components for the Storybook marketing, docs, addons, blog and showcase sites.

NPM JavaScript Style Guide

Used by

Note: these components are not used in Storybook's UI.

Tech stack

Building components

Maintaining the system

Install

npm install --save @storybook/components-marketing

Install peer dependencies:

npm install --save @docsearch/css @storybook/theming framer-motion@7.0.0

Usage — global header and footer

The page header comprises of three parts: Eyerbrow, Nav, and SubNav

Eyebrow, Nav, and Footer usually live at the shared layout level whereas the SubNav is specific to each page. The SubNav can be configured in several different ways, check out its stories file for examples.

All these components support an inverse variant.

Sourcing data

Source shared DX data from https://storybook-dx.netlify.app/.netlify/functions/dx-data

  • Eyerbrow requires latestPost
  • Footer requires subscriberCount

Configuring links

The Nav and Footer links are configured via the LinksContextProvider. It comes with a default set of links

https://storybook-dx.netlify.app/.netlify/functions/dx-data

Styling

Eyebrow contains a Search component which depends on @docsearch/css. You need to load these styles in your app, probably at the top-most, global, level:

import '@docsearch/css';

Development Scripts

yarn release

Bump the version

Push a release to GitHub and npm

Push a changelog to GitHub

Notes:

  • Requires authentication with npm adduser
  • auto is used to generate a changelog and push it to GitHub. In order for this to work correctly, environment variables called GH_TOKEN and NPM_TOKEN are needed that reference a GitHub personal access token and a NPM "Publish" token with the appropriate permissions to update the repo.

License

MIT © storybookjs

3.1.0

26 days ago

2.3.2

2 months ago

2.3.1

2 months ago

3.0.2

2 months ago

3.0.1

2 months ago

3.0.0

2 months ago

2.3.0

2 months ago

2.2.1

3 months ago

2.2.0

5 months ago

2.1.2

8 months ago

2.1.4

6 months ago

2.1.3

8 months ago

2.1.1

12 months ago

2.1.0

12 months ago

2.0.46

1 year ago

2.0.47

1 year ago

2.0.45

1 year ago

2.0.44

1 year ago

2.0.42

1 year ago

2.0.43

1 year ago

2.0.37

2 years ago

2.0.38

2 years ago

2.0.39

2 years ago

2.0.40

1 year ago

2.0.41

1 year ago

2.0.28

2 years ago

2.0.29

2 years ago

2.0.35

2 years ago

2.0.36

2 years ago

2.0.33

2 years ago

2.0.7

2 years ago

2.0.34

2 years ago

2.0.31

2 years ago

2.0.9

2 years ago

2.0.32

2 years ago

2.0.8

2 years ago

2.0.30

2 years ago

2.0.15

2 years ago

2.0.16

2 years ago

2.0.13

2 years ago

2.0.14

2 years ago

2.0.11

2 years ago

2.0.12

2 years ago

2.0.10

2 years ago

2.0.19

2 years ago

2.0.17

2 years ago

2.0.18

2 years ago

2.0.26

2 years ago

2.0.27

2 years ago

2.0.24

2 years ago

2.0.25

2 years ago

2.0.22

2 years ago

2.0.23

2 years ago

2.0.20

2 years ago

2.0.21

2 years ago

2.0.3

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.6

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

0.1.0

2 years ago