Franklin
No description available
Install / Use
/learn @InterNACHI/FranklinREADME
Franklin
Franklin is a universal address input for the modern web. It is a work-in-progress project and should not be used or relied on in any way yet!
Franklin does not apply any styling to your components by default. You can target each
element by a class name like franklin__label or apply your own CSS classes if you're
using something like Tailwind.
🚨 Feedback Encouraged 🚨
If you live in a country where you regularly have to fight with address inputs, we'd love your feedback. Please try out the demo and submit an issue or join a discussion if you find something that doesn't work as you would expect!
Packages
@internachi/franklin
Franklin is implemented in React, and @internachi/franklin publishes the React component
for use in your project.
@internachi/franklin-standalone
You can also install @internachi/franklin-standalone if you're not using React. This bundles
preact and publishes a Franklin() method that can be used:
Franklin(document.getElementById("address"), {
// Apply some basic Tailwind CSS to the elements
classNames: {
container: 'antialiased',
select: 'block w-full mt-1 rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50',
grid: 'space-y-2 my-4',
gridRow: 'flex space-x-2',
gridColumn: 'flex-1',
label: 'block',
input: 'mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50',
}
});
TODO:
- Allow for "common countries" so you can put your most common countries at top of list
- Controlled / uncontrolled inputs
- More styling control at an input-by-input level
- Explore wrapping in web component / jQuery plugin
- Allow passing IDs
- Validation
Building
lerna run deploybuilds and deploys github docslerna publishbumps version, tags, and publishes to npm
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
