2.0.14 • Published 4 months ago

@sect/solid-hiding-header v2.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@sect/solid-hiding-header

Release codecov CodeQL npm version NPM

Forked from Hiding Header React by Filip Chalupa.

Demo

Toggles header visibility on scroll. Demo.

UI example

Quick start

Install it:

npm i @sect/solid-hiding-header
# or
yarn add @sect/solid-hiding-header
# or
pnpm add @sect/solid-hiding-header

CSS:

Import node_modules/hiding-header/dist/style.css to your CSS. It's few lines of code. You can alternatively copy paste it and adjust things like z-index to your needs.

Usage Example

import { HidingHeader } from '@sect/solid-hiding-header';

const Header: Component = () => {
  return (
    <HidingHeader>
      <header class="py-5">
        <div class="inner">
          Put your content here
        </div>
      </header>
    </HidingHeader>
  );
};

Allow Top Level HTML <header> tag

const Header: Component = () => {
  return (
    <HidingHeader component="header">
      <div class="inner py-5">
        Put your content here
      </div>
    </HidingHeader>
  );
};

See Core API docs for more options.
https://github.com/FilipChalupa/hiding-header/blob/main/README.md

Changelog

See CHANGELOG file.

License

See LICENSE file.

2.0.13

4 months ago

2.0.14

4 months ago

2.0.12

5 months ago

2.0.11

5 months ago

2.0.10

5 months ago

1.5.1

9 months ago

1.5.0

9 months ago

2.0.3

8 months ago

2.0.2

8 months ago

2.0.5

8 months ago

2.0.4

8 months ago

2.0.7

7 months ago

2.0.6

8 months ago

2.0.9

7 months ago

2.0.8

7 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.2.0

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago