@lotosui/web-components
v0.1.0
Published
LotOS UI Web Components prototype - framework-agnostic custom elements powered by @lotosui/core tokens.
Readme
@lotosui/web-components
Framework-agnostic custom elements for LotOS UI.
Current status: prototype package with two production-style components:
<lotos-button><lotos-input>
Quick start
import { registerLotosWebComponents } from '@lotosui/web-components';
registerLotosWebComponents();<lotos-button variant="primary" size="md">Get Started</lotos-button>
<lotos-button variant="outline" size="sm">Learn More</lotos-button>
<lotos-input type="email" label="Work Email" placeholder="[email protected]"></lotos-input>Attributes (lotos-button)
variant:primary | secondary | ghost | destructive | outlinesize:sm | md | lgdisabled: booleanfull-width: booleantype:button | submit | reset
Attributes (lotos-input)
type:text | email | password | number | tel | url | search | date | timelabel: stringplaceholder: stringvalue: stringhelper-text: stringerror: stringsize:sm | md | lgrequired: booleandisabled: booleanreadonly: booleanname: stringid: string
Notes
- Uses
@lotosui/coredesign tokens. - This package is the bridge toward multi-framework adapters (Laravel, Django, etc.).
