@bedrock-layout/primitives
TypeScript icon, indicating that this package has built-in type declarations

3.0.45 • Public • Published

@bedrock-layout/primitives

All the primitives and hooks in a single package.

Full docs at: bedrock-layout.dev

How to install

npm install @bedrock-layout/primitives

or

yarn add @bedrock-laylock/primitives


Usage

import { Stack, Inline, Split, Cover, Frame } from '@bedrock-layout/primitives';

export function Hero() {
  return (
    <Stack>
      <Inline>{/* */}</Inline>
      <Split>
        <Cover>
          <Stack>
            <h1>{/* */}</h1>
            <p>{/* */}</p>
            <Inline>
              <button>{/* */}</button>
              <button>{/* */}</button>
            </Inline>
          </Stack>
        </Cover>
        <Frame>
          <img />
        </Frame>
      </Split>
    </Stack>
  );
}

Dependencies (20)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @bedrock-layout/primitives

    Weekly Downloads

    253

    Version

    3.0.45

    License

    MIT

    Unpacked Size

    15.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • jarvis1010