liquid-glass-for-react 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -19
- package/dist/index.d.ts +29 -19
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +50 -17
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Apple の Liquid Glass の視覚言語を、React と Tailwind CSS v4 で使え
|
|
|
13
13
|
|
|
14
14
|
## インストール
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
[はじめに](https://liquid-glass-for-react.moglia-yatsumi.workers.dev/ja/getting-started) でフレームワーク別の導入手順を確認できます。
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
19
|
npm install liquid-glass-for-react
|
|
@@ -141,6 +141,10 @@ MUI Material UI の現行 All components ページを分類の基準にし、MUI
|
|
|
141
141
|
|
|
142
142
|
## フォームの例
|
|
143
143
|
|
|
144
|
+
React Hook Form で `TextField` を登録し、`Controller` で `Switch` を管理する例は、[React Hook Form の連携ガイド](https://liquid-glass-for-react.moglia-yatsumi.workers.dev/ja/getting-started#react-hook-form) にあります。
|
|
145
|
+
|
|
146
|
+
`Link` の `as` にルーターのリンクを指定すると、Liquid Glass のスタイルを使いながらルーター側で画面遷移できます。[Next.js Link の例](https://liquid-glass-for-react.moglia-yatsumi.workers.dev/ja/getting-started#next-link)と [React Router Link の例](https://liquid-glass-for-react.moglia-yatsumi.workers.dev/ja/getting-started#react-router-link)を用意しています。
|
|
147
|
+
|
|
144
148
|
```tsx
|
|
145
149
|
function Settings() {
|
|
146
150
|
const [quality, setQuality] = useState("balanced");
|