npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@kikipoulet/react-dotnetxaml-layouts

v1.1.0

Published

React layout components inspired by WPF XAML - StackPanel, Grid, DockPanel, ScrollViewer

Readme

@kikipoulet/react-dotnetxaml-layouts

React layout components inspired by WPF XAML. These components provide a familiar layout system for React applications, similar to WPF's layout panels.

Installation

npm install @kikipoulet/react-dotnetxaml-layouts

Components

Root

A root container component that provides a full-screen or fixed-size container for your layout.

import { Root } from '@kikipoulet/react-dotnetxaml-layouts';

<Root fullScreen={true}>
  <YourContent />
</Root>

Props:

  • children (ReactNode): Content to display
  • fullScreen? (boolean): Whether the root should be full screen (default: true)
  • style? (CSSProperties): Additional inline styles

StackPanel

Arranges child elements in a single line that can be oriented horizontally or vertically.

import { StackPanel } from '@kikipoulet/react-dotnetxaml-layouts';

<StackPanel orientation="vertical" spacing={10}>
  <div>Item 1</div>
  <div>Item 2</div>
  <div>Item 3</div>
</StackPanel>

Props:

  • orientation? ('horizontal' | 'vertical'): Layout direction (default: 'vertical')
  • spacing? (number | string): Space between items (default: 8px)
  • horizontalAlignment? ('start' | 'center' | 'end' | 'stretch'): Horizontal alignment (default: 'stretch')
  • verticalAlignment? ('start' | 'center' | 'end' | 'stretch'): Vertical alignment (default: 'start')
  • children (ReactNode): Content to display
  • style? (CSSProperties): Additional inline styles

Grid

A flexible grid layout that allows you to arrange elements in rows and columns.

import { Grid } from '@kikipoulet/react-dotnetxaml-layouts';

<Grid columns="1fr 1fr 1fr" gap={10}>
  <div column={1}>Header</div>
  <div column={2}>Content</div>
  <div column={3}>Sidebar</div>
</Grid>

<Grid >
    <StackPanel orientation="horizontal" spacing={12} horizontalAlignment="right" verticalAlignment="bottom">
        <button>Cancel</button>
        <button >OK</button>
    </StackPanel>
</Grid>

Props:

  • columns? (string | number): Grid template columns (default: '1fr')
  • rows? (string): Grid template rows (default: 'auto')
  • gap? (number | string): Gap between grid cells (default: 0)
  • autoFlow? ('row' | 'column' | 'row dense'): Grid auto-flow algorithm (default: 'row')
  • children (ReactNode): Content to display
  • style? (CSSProperties): Additional inline styles

DockPanel

A layout panel that arranges child elements along the edges of the panel.

import { DockPanel } from '@kikipoulet/react-dotnetxaml-layouts';

<DockPanel >
  <div dock="top">Header</div>
  <div dock="bottom">Footer</div>
  <div dock="left">Sidebar</div>
  <div>Main Content</div>
</DockPanel>

Props:

  • lastChildFill? (boolean): Whether the last child fills remaining space (default: true)
  • children (ReactNode): Content to display
  • style? (CSSProperties): Additional inline styles

Child Props (DockChild):

  • dock? ('top' | 'left' | 'right' | 'bottom'): Edge to dock to
  • children? (ReactNode): Child content
  • style? (CSSProperties): Additional inline styles

ScrollViewer

A scrollable container that provides scrollbars for its content.

import { ScrollViewer } from '@kikipoulet/react-dotnetxaml-layouts';

<ScrollViewer 
  verticalScrollBarVisibility="auto"
  horizontalScrollBarVisibility="auto"
>
  <div style={{ height: '2000px' }}>
    Long content...
  </div>
</ScrollViewer>

Props:

  • verticalScrollBarVisibility? ('auto' | 'visible' | 'hidden' | 'disabled'): Vertical scrollbar visibility (default: 'auto')
  • horizontalScrollBarVisibility? ('auto' | 'visible' | 'hidden' | 'disabled'): Horizontal scrollbar visibility (default: 'auto')
  • children (ReactNode): Content to display
  • style? (CSSProperties): Additional inline styles

Complete Example

import React from 'react';
import { Root, StackPanel, Grid, DockPanel, ScrollViewer } from '@kikipoulet/react-dotnetxaml-layouts';

function App() {
  return (
    <Root>
      <DockPanel lastChildFill={true}>
        <div dock="top" style={{ padding: '10px', background: '#f0f0f0' }}>
          <h1>My App</h1>
        </div>
        <div dock="left" style={{ width: '200px', background: '#e0e0e0' }}>
          <StackPanel spacing={10}>
            <div>Menu Item 1</div>
            <div>Menu Item 2</div>
            <div>Menu Item 3</div>
          </StackPanel>
        </div>
        <ScrollViewer>
          <StackPanel spacing={20} style={{ padding: '20px' }}>
            <div>Content 1</div>
            <div>Content 2</div>
            <div>Content 3</div>
          </StackPanel>
        </ScrollViewer>
      </DockPanel>
    </Root>
  );
}

export default App;

License

MIT

Author

kikipoulet