@olenbetong/page-banner
React component for themed page banners
Last updated a year ago by bjornarvh .
MIT · Original npm · Tarball · package.json
$ cnpm install @olenbetong/page-banner 
SYNC missed versions from official npm registry.

@olenbetong/page-banner

React component used to navigate dates.

Installation

NPM:

npm i @olenbetong/page-banner
import { PageBanner, BannerImage, Title, TabList, Tab } from '@olenbetong/page-banner';

UMD and ESM builds are available on unpkg.com. For UMD, the components are available in the global ReactDateNavigator variable.

<script src="https://unpkg.com/@olenbetong/page-banner@latest/dist/umd/page-banner.min.js" type="text/javascript"></script>
<script type="text/javascript">
const { PageBanner, BannerImage } = ReactPageBanner;
</script>
<script type="module">
import { PageBanner, BannerImage } from "https://unpkg.com/@olenbetong/page-banner@latest/dist/esm/page-banner.min.js";
</script>

Components

PageBanner

This component adds the page banner with background based on current theme (var(--brand-dark)).

BannerImage

Image that covers the entire width on small screens, and gets rounded corners on large screens. Use like you would use "img".

Title

Title with different font size based on screen size.

Tab list

Tab navigation with horizontal scrolling on small screens. Can be sticky.

Tab

Adds tab styling.

Current Tags

  • 1.0.12                                ...           latest (5 months ago)

13 Versions

  • 1.0.12                                ...           5 months ago
  • 1.0.11                                ...           6 months ago
  • 1.0.10                                ...           8 months ago
  • 1.0.9                                ...           10 months ago
  • 1.0.8                                ...           a year ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 1.0.0-rc.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |