Skip to content

stagas/sigl-ui

Repository files navigation

sigl-ui

UI elements and components for sigl

npm i sigl-ui pnpm add sigl-ui yarn add sigl-ui

Examples

# web
    # view source example/web.tsx

    /** @jsxImportSource sigl */
    import $ from 'sigl'
    
    import { ToggleElement } from 'sigl-ui/toggle'
    
    const Toggle = $.element(ToggleElement)
    
    $.render(
      <>
        <Toggle />
        <Toggle value={true} />
      </>,
      document.body
    )

API

# NumberInputElement src/number-input.tsx#L7
# ToggleElement src/toggle.tsx#L7
# Stretchy({ children, height, key, part, width }) src/stretchy.tsx#L3

Credits

Contributing

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT © 2022 stagas