Customize Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions.You will find detailed information about all cookies under each consent category below.

The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site.... 

Always Active

Necessary cookies are required to enable the basic features of this site,such as providing secure log-in or adjusting your consent preferences.These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms,collecting feedback,and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website.These cookies help provide information on metrics such as the number of visitors,bounce rate,traffic source,etc.

No cookies to display.

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

No cookies to display.

MUI

プログラミング

MUIのテキストフィールドで数字キーボードの出し方や数字(小数点の有無)の入力制限方法。

MUIのテキストフィールドにおいて、スマホのキーボードを数字キーボードにする方法やその数字キーボードに小数点を表示させるかどうかを設定する方法を記します。はじめにMUIの入力欄にはいくつか種類がありますが、TextFieldは、Input、...
プログラミング

MUIのTextFieldで枠線(fieldset)を消す方法。

はじめにMUIのTextFieldを使用すると、Borderが適用されて、このBorderを無効化したい場合があります。例えば、TextFieldをrenderInput内で使用して、スタイルはラッパー側を適用したい場面など。そういったとき...
プログラミング

MUIのAppBarでfixedを使用すると要素が重なり、stickyだと固定されないときに確認すること。

はじめにMUIのAppBarを固定させたい時、positionをfixedにすることで実現することができます。しかし、fixedを使用すると、元々reativeで下にあった要素が上がり重なってしまいます。AppBarのheightはドキュメ...
プログラミング

【MUI,Next.js】MediaQueryの判別ユーティルティ作成した。備忘録

はじめに環境 mui/material:^5.15.5 next: 14.0.3 typescript": ^5MediaQueryの判別用ファイルimport useMediaQuery from '@mui/material/useMe...
プログラミング

DataGridのヘッダーから「…(テンテンテン)」や上矢印のメニューをなくす方法。

はじめにDataGridのヘッダーから「...(テンテンテン)」や上矢印のメニューをなくす方法を記します。このテンテンテンは、Kebab Menu (ケバブメニュー)と呼ぶそうです。環境@mui/x-data-grid”: “6.19.4”...
プログラミング

DataGridのセルにてWidthが一定以上小さくならないときに確認すること(備忘録)

はじめにData Gridで表を作成するとき、セルのサイズなど指定することができますが、Widthを一定以上小さくしようとプロパティを設定しても小さくならないです。そのときに確認するべきことを記します。環境@mui/x-data-grid"...
プログラミング

MUIのDataGridでshowCellRightBorderを使うとエラーが出る。対処法。

はじめにDataGridを使っていて、セルにBorderを適用させたかったのですが、用意されていたプロパティ「showCellRightBorder」を設定しても割り当てられないとエラーが発生してしまいます。<DataGrid rows={...
プログラミング

MUIのDataGridで初期表示時に特定の列を非表示にする(React)

はじめに環境 mui/x-data-grid: 6.19.4特定の列を非表示にする方法DataGrid要素内のプロパティ「columnVisibilityModel」で、非表示にしたい列を指定することで初期非表示にすることができます。列管理...
プログラミング

MUIのDataGridで標準の日本語と任意の文字列をマージさせる方法(備忘録)

はじめにMUIのx-data-gridは、多機能なデータテーブルのコンポーネントです。フィルター等機能も簡単につけられます。しかし、標準で英語になっているため日本語に変更する方法と、一部任意の文字列に変更したい場合の手順を記します。環境 r...
プログラミング

MUIでの「AppBar」をスクロール時に隠す方法(備忘録)

はじめに環境 react: "^17.0.0 || ^18.0.0", @mui/material:^5.15.9 @emotion/react:^11.11.3 @emotion/styled:^11.11.0実装下にスクロールしたときに...
開発

MUIのCardActionsをalign centerやrightにする方法(備忘録)

はじめにMUIのCardActionに配置しているボタンなど要素を中央寄せ、右寄せにする方法を記します。方法<CardActions sx={{justifyContent: 'center'}}></CardActions>CardAct...
プログラミング

【Next.js】MUIの要素にGoogleFontsを適用する方法(備忘録)

MUI要素にGoogleFontsを適用する方法GoogleFontsでフォントを選ぶGoogle FontsでFontを選ぶ。globals.cssにimportするglobals.cssにfontをimportする。@import ur...
プログラミング

Next.jsでMUIのTypographyを設置すると「Element type is invalid」とエラーが出るときの対処法

エラーNext.jsにおいて、MUI要素であるTypographyを特定条件下で配置した際、以下のようなエラーが発生します。Error: Element type is invalid. Received a promise that re...