Giter VIP home page Giter VIP logo

functional-ui / functional-ui-kit Goto Github PK

View Code? Open in Web Editor NEW
499.0 6.0 15.0 139 KB

Precise Figma & React components. Packed with best practices, unified prop names & consistent design and code.

Home Page: https://functional-ui-kit.com

License: MIT License

JavaScript 2.02% Shell 0.03% HTML 2.41% CSS 22.68% TypeScript 68.11% MDX 4.75%
design-system figma front-end front-end-development frontend react react-components storybook ui-components ui-design

functional-ui-kit's People

Contributors

alexyakir avatar almogadziashvili avatar gavrielc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

functional-ui-kit's Issues

Uncaught TypeError: Cannot read properties of null (reading 'useMemo')

The package simply does not work under a few react frameworks

Receiving this error when trying to render any FUI component

Uncaught TypeError: Cannot read properties of null (reading 'useMemo')

Starter Environments (react 18.2.0, react-dom 18.2.0):

Steps to Reproduce:

  1. Install any of the 2 local dev environments mentioned above
  2. Install functional-ui-kit
  3. Import any functional-ui-kit component & add it to main render function in App.js (see code snippet in the end)
  4. Run npm run start (for create-react-app) OR npm run dev (for vite-react-starter)
  5. Page does not render at all & receives above mentioned error

App.js Code

import { FuiBadge } from 'functional-ui-kit/fui-badge';
import 'functional-ui-kit/style';

function App() {
  return (
    <div>
      <FuiBadge label="label" />
    </div>
  );
}

export default App;

Components do not "adhere to WCAG accessibility guidelines"

Playing with your docs and adding a label to the example generates this React code

<FuiTextInput
  label="label"
  onChange={function noRefCheck(){}}
  placeholder="Placeholder"
  value=""
/>

which is rendered as divs with no association between the label an field nor even a role of label for the div that contains the label

<div class="fui-text-input-wrapper undefined">
   <div class="fui-text-input-label">label</div>
   <div class="fui-text-input-container ">  
      <div class="fui-text-input-input-container fui-interactable">
         <input type="text" placeholder="Placeholder" class="fui-text-input-input" value="">
      </div>
   </div>
</div>

also worth noting that the default example uses placeholder instead of a label.

None of this adheres to WCAG guidelines nor do any of the form components.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.