0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ReactのUIコンポーネントライブラリで特定の用途における比較をした

Last updated at Posted at 2024-02-08

1. 背景

現在NuxtからReactにリプレイス中でUIコンポーネントライブラリを調査していた為です。
NuxtではElement-UIを使用していました。

2. 条件

2.1. Datepicker

カレンダーアイコン以外をクリックしてもカレンダーを開きたい

2.2. Cascader

複数選択時にチェックボックスだけでなくラベルを選択してもチェックしてほしい

以下が主要なライブラリだと思うのでこれらの条件を満たすか比較してみました。

3. Ant Design と MUI と React-Bootstrap の比較

3.1. Datepicker

Ant-Design

条件を満たせています。
https://ant.design/components/date-picker

MUI

カレンダーアイコンをクリックしないとカレンダーが表示されなかったです。
https://mui.com/x/react-date-pickers/date-picker/

React-Bootstrap

https://react-bootstrap.netlify.app/docs/forms/overview/
LIVE EDITORのtype="email"をdateに変えて検証しました。

<Form.Control type="date" placeholder="Enter email" />

https://gyazo.com/ddf1043d20c6f42d32889efc6d7beb55
こちらもカレンダーアイコンをクリックしないとカレンダーが表示されなかったです。

3.2. Cascader

Ant-Design

条件を満たせています。
https://ant.design/components/cascader#cascader-demo-showcheckedstrategy

MUI

Cascaderがないので作る必要があります。

MUI XのTree ViewとCheckboxで実現できるらしいです。

React-Bootstrap

cascaderに関する情報が見当たらなかったです。

4.最後に

  • Ant-Designに軍配が上がってるかなと思いました
  • Ant-DesignはMUIよりカスタマイズ性が低いという記事を見かけたのでもう少し調査したいです

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?