Flexbox layout for the modern web, exposed as two tiny custom elements:
flex-container and flex-item.
packages/tiny-flex— publishable Vite-built TypeScript librarypackages/test— Vitest DOM testsapps/demo— Vite + Tailwind demo
pnpm install
pnpm test
pnpm --filter @tiny-flex/demo dev<flex-container gap="1rem" justify-content="space-between">
<flex-item grow="1">Hello</flex-item>
<flex-item>world</flex-item>
</flex-container>See the package README for the full attribute list and release commands.
MIT Copyright Maroun Baydoun.