W
W
wvw12021-11-21 21:08:26
Frontend
wvw1, 2021-11-21 21:08:26

From which UI kits for React can you take one component at a time and not pull the entire library code with you?

Hello),
here is an example: radix-ui.com , in this library, each component is installed as a dependency:
npm install @radix-ui/react-progress

import * as Progress from '@radix-ui/react-progress';

export default () => (
  <Progress.Root>
    <Progress.Indicator />
  </Progress.Root>
);

In other libraries, it is installed in its entirety, and the components are used like this:
import { Form, Input, Button, Checkbox } from 'antd';
// ...

What other libraries (except radix-ui) can I take components from without pulling a huge pile of unnecessary code and CSS styles (about light / dark theme, components <Grid />, <Flex />etc., you understand) Thank you :)

PS material- ui also has the same approach as radix-ui

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question