index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/toolbar/toolbar.json | {
"componentDescription": "",
"propDescriptions": {
"children": {
"description": "The Toolbar children, usually a mixture of <code>IconButton</code>, <code>Button</code> and <code>Typography</code>. The Toolbar is a flex container, allowing flex item properties to be used to lay out the children."
},
... | 5,700 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/tooltip/tooltip.json | {
"componentDescription": "",
"propDescriptions": {
"arrow": { "description": "If <code>true</code>, adds an arrow to the tooltip." },
"children": { "description": "Tooltip reference element.", "requiresRef": true },
"classes": { "description": "Override or extend the styles applied to the component." }... | 5,701 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/typography/typography.json | {
"componentDescription": "",
"propDescriptions": {
"align": { "description": "Set the text-align on the component." },
"children": { "description": "The content of the component." },
"classes": { "description": "Override or extend the styles applied to the component." },
"component": {
"descr... | 5,702 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-autocomplete/use-autocomplete.json | {
"hookDescription": "",
"parametersDescriptions": {
"autoComplete": {
"description": "If <code>true</code>, the portion of the selected suggestion that has not been typed by the user, known as the completion string, appears inline after the input cursor in the textbox. The inline completion string is vis... | 5,703 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-badge/use-badge.json | {
"hookDescription": "",
"parametersDescriptions": {
"badgeContent": { "description": "The content rendered within the badge." },
"invisible": { "description": "If <code>true</code>, the badge is invisible." },
"max": { "description": "Max count to show." },
"showZero": {
"description": "Contr... | 5,704 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-button/use-button.json | {
"hookDescription": "",
"parametersDescriptions": {
"disabled": { "description": "If <code>true</code>, the component is disabled." },
"focusableWhenDisabled": {
"description": "If <code>true</code>, allows a disabled button to receive focus."
},
"type": {
"description": "Type attribute... | 5,705 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-dropdown/use-dropdown.json | {
"hookDescription": "",
"parametersDescriptions": {
"defaultOpen": { "description": "If <code>true</code>, the dropdown is initially open." },
"onOpenChange": {
"description": "Callback fired when the component requests to be opened or closed."
},
"open": {
"description": "Allows to con... | 5,706 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-form-control-context/use-form-control-context.json | {
"hookDescription": "",
"parametersDescriptions": {},
"returnValueDescriptions": {
"disabled": {
"description": "If <code>true</code>, the label, input and helper text should be displayed in a disabled state."
},
"error": { "description": "If <code>true</code>, the label is displayed in an erro... | 5,707 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-input/use-input.json | {
"hookDescription": "",
"parametersDescriptions": {
"defaultValue": {
"description": "The default value. Use when the component is not controlled."
},
"disabled": {
"description": "If <code>true</code>, the component is disabled. The prop defaults to the value (<code>false</code>) inherited... | 5,708 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-menu-button/use-menu-button.json | {
"hookDescription": "",
"parametersDescriptions": {
"disabled": { "description": "If <code>true</code>, the component is disabled." },
"focusableWhenDisabled": {
"description": "If <code>true</code>, allows a disabled button to receive focus."
},
"rootRef": { "description": "The ref to the ro... | 5,709 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-menu-item-context-stabilizer/use-menu-item-context-stabilizer.json | {
"hookDescription": "Stabilizes the ListContext value for the MenuItem component, so it doesn't change when sibling items update.\n\n@param id The id of the MenuItem. If undefined, it will be generated with useId.\n@returns The stable ListContext value and the id of the MenuItem.",
"parametersDescriptions": {},
... | 5,710 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-menu-item/use-menu-item.json | {
"hookDescription": "",
"parametersDescriptions": {},
"returnValueDescriptions": {
"disabled": { "description": "If <code>true</code>, the component is disabled." },
"focusVisible": {
"description": "If <code>true</code>, the component is being focused using keyboard."
},
"getRootProps": { ... | 5,711 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-menu/use-menu.json | {
"hookDescription": "",
"parametersDescriptions": {
"disabledItemsFocusable": {
"description": "If <code>true</code>, it will be possible to highlight disabled items."
},
"disableListWrap": {
"description": "If <code>true</code>, the highlight will not wrap around the list if arrow keys are... | 5,712 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-modal/use-modal.json | {
"hookDescription": "",
"parametersDescriptions": {
"children": { "description": "A single child content element." },
"closeAfterTransition": {
"description": "When set to true the Modal waits until a nested Transition is completed before closing."
},
"container": {
"description": "An H... | 5,713 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-number-input/use-number-input.json | {
"hookDescription": "",
"parametersDescriptions": {
"defaultValue": {
"description": "The default value. Use when the component is not controlled."
},
"disabled": {
"description": "If <code>true</code>, the component is disabled. The prop defaults to the value (<code>false</code>) inherited... | 5,714 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-option-context-stabilizer/use-option-context-stabilizer.json | {
"hookDescription": "Stabilizes the ListContext value for the Option component, so it doesn't change when sibling Options update.\n\n@param value The value of the Option.\n@returns The stable ListContext value.",
"parametersDescriptions": {},
"returnValueDescriptions": {}
}
| 5,715 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-option/use-option.json | {
"hookDescription": "",
"parametersDescriptions": {},
"returnValueDescriptions": {
"getRootProps": { "description": "Resolver for the root slot's props." },
"highlighted": { "description": "If <code>true</code>, the option is highlighted." },
"rootRef": { "description": "Ref to the root slot DOM ... | 5,716 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-select/use-select.json | {
"hookDescription": "",
"parametersDescriptions": {
"areOptionsEqual": {
"description": "A function used to determine if two options' values are equal. By default, reference equality is used.<br>There is a performance impact when using the <code>areOptionsEqual</code> prop (proportional to the number... | 5,717 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-slider/use-slider.json | {
"hookDescription": "",
"parametersDescriptions": {
"aria-labelledby": {
"description": "The id of the element containing a label for the slider."
},
"defaultValue": {
"description": "The default value. Use when the component is not controlled."
},
"disabled": { "description": "If <... | 5,718 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-snackbar/use-snackbar.json | {
"hookDescription": "The basic building block for creating custom snackbar.",
"parametersDescriptions": {
"autoHideDuration": {
"description": "The number of milliseconds to wait before automatically calling the <code>onClose</code> function. <code>onClose</code> should then set the state of the <code>op... | 5,719 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-switch/use-switch.json | {
"hookDescription": "The basic building block for creating custom switches.",
"parametersDescriptions": {
"checked": { "description": "If <code>true</code>, the component is checked." },
"defaultChecked": {
"description": "The default checked state. Use when the component is not controlled."
},
... | 5,720 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-tab-panel/use-tab-panel.json | {
"hookDescription": "",
"parametersDescriptions": {
"id": { "description": "The id of the TabPanel." },
"rootRef": { "description": "The ref of the TabPanel." },
"value": {
"description": "The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected."
}
... | 5,721 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-tab/use-tab.json | {
"hookDescription": "",
"parametersDescriptions": {
"disabled": { "description": "If <code>true</code>, the tab will be disabled." },
"id": {
"description": "The id of the tab. If not provided, it will be automatically generated."
},
"onChange": { "description": "If <code>true</code>, the tab... | 5,722 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-tabs-list/use-tabs-list.json | {
"hookDescription": "",
"parametersDescriptions": { "rootRef": { "description": "Ref to the root element." } },
"returnValueDescriptions": {
"contextValue": {
"description": "The value to be passed to the TabListProvider above all the tabs."
},
"dispatch": {
"description": "Action dispatc... | 5,723 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/use-tabs/use-tabs.json | {
"hookDescription": "",
"parametersDescriptions": {
"defaultValue": {
"description": "The default value. Use when the component is not controlled."
},
"direction": { "description": "The direction of the text." },
"onChange": { "description": "Callback invoked when new value is being set." },
... | 5,724 |
0 | petrpan-code/mui/material-ui/docs/translations/api-docs | petrpan-code/mui/material-ui/docs/translations/api-docs/zoom/zoom.json | {
"componentDescription": "The Zoom transition can be used for the floating variant of the\n[Button](/material-ui/react-button/#floating-action-buttons) component.\nIt uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.",
"propDescriptions": {
"addEndListener": {
"... | 5,725 |
0 | petrpan-code/mui/material-ui/docs | petrpan-code/mui/material-ui/docs/types/docs.d.ts | declare module 'docs/src/modules/components/HighlightedCode' {
import * as React from 'react';
import { StyledComponentProps } from '@mui/material/styles';
type ClassKey = 'root';
export interface Props extends StyledComponentProps<ClassKey> {
className?: string;
/**
* plain string
*/
cod... | 5,726 |
0 | petrpan-code/mui/material-ui/docs | petrpan-code/mui/material-ui/docs/types/fg-loadcss.d.ts | declare module 'fg-loadcss';
| 5,727 |
0 | petrpan-code/mui/material-ui/docs | petrpan-code/mui/material-ui/docs/types/icons.d.ts | declare module '@mui/icons-material';
declare module '@mui/icons-material/*';
| 5,728 |
0 | petrpan-code/mui/material-ui | petrpan-code/mui/material-ui/examples/.eslintrc.js | module.exports = {
rules: {
'import/namespace': 'off',
'import/no-unresolved': 'off',
'import/extensions': 'off',
'import/named': 'off',
'import/no-duplicates': 'off',
'import/no-named-as-default': 'off',
'import/default': 'off',
'import/no-named-as-default-member': 'off',
'import/... | 5,729 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-cra-ts/README.md | # Base UI - Create React App example in TypeScript
[Base UI](https://mui.com/base-ui/) is a library of unstyled React UI components and hooks.
[Create React App](https://create-react-app.dev/) is a framework for quickly creating a new React project without the need to configure complex build tools or development envi... | 5,730 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-cra-ts/package.json | {
"name": "base-ui-cra-ts",
"version": "5.0.0",
"private": true,
"dependencies": {
"@mui/base": "latest",
"@types/react": "latest",
"@types/react-dom": "latest",
"react": "latest",
"react-dom": "latest",
"react-scripts": "latest",
"typescript": "latest"
},
"scripts": {
"start... | 5,731 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-cra-ts/tsconfig.json | {
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolutio... | 5,732 |
0 | petrpan-code/mui/material-ui/examples/base-ui-cra-ts | petrpan-code/mui/material-ui/examples/base-ui-cra-ts/public/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<title>CRA + Base UI + TS</title>
</head>
<body>
<noscript>You need to enable JavaScript to run t... | 5,733 |
0 | petrpan-code/mui/material-ui/examples/base-ui-cra-ts | petrpan-code/mui/material-ui/examples/base-ui-cra-ts/src/App.tsx | import * as React from 'react';
import './index.css';
export default function App() {
return (
<div className="box">
<h1>Base UI + Create React App scaffold (TypeScript)</h1>
<div className="item">
<a href="https://mui.com/base-ui/">Base UI</a> is a library of unstyled React UI components
... | 5,734 |
0 | petrpan-code/mui/material-ui/examples/base-ui-cra-ts | petrpan-code/mui/material-ui/examples/base-ui-cra-ts/src/index.css | .item {
border: 1px solid #000000;
padding: 20px;
border-radius: 4px;
margin-bottom: 20px;
}
.box {
flex-grow: 1;
max-width: 800px;
margin: auto;
padding: 15px;
font-family: sans-serif;
line-height: 1.5;
}
| 5,735 |
0 | petrpan-code/mui/material-ui/examples/base-ui-cra-ts | petrpan-code/mui/material-ui/examples/base-ui-cra-ts/src/index.tsx | import * as React from 'react';
import * as ReactDOM from 'react-dom/client';
import App from './App';
const rootElement = document.getElementById('root');
const root = ReactDOM.createRoot(rootElement!);
root.render(<App />);
| 5,736 |
0 | petrpan-code/mui/material-ui/examples/base-ui-cra-ts | petrpan-code/mui/material-ui/examples/base-ui-cra-ts/src/react-app-env.d.ts | /// <reference types="react-scripts" />
| 5,737 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-cra/README.md | # Base UI - Create React App example in JavaScript
[Base UI](https://mui.com/base-ui/) is a library of unstyled React UI components and hooks.
[Create React App](https://create-react-app.dev/) is a framework for quickly creating a new React project without the need to configure complex build tools or development envi... | 5,738 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-cra/package.json | {
"name": "base-ui-cra",
"version": "5.0.0",
"private": true,
"dependencies": {
"@mui/base": "latest",
"react": "latest",
"react-dom": "latest",
"react-scripts": "latest"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",... | 5,739 |
0 | petrpan-code/mui/material-ui/examples/base-ui-cra | petrpan-code/mui/material-ui/examples/base-ui-cra/public/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Web site created using create-react-app" />
<title>CRA + Base UI</title>
<... | 5,740 |
0 | petrpan-code/mui/material-ui/examples/base-ui-cra | petrpan-code/mui/material-ui/examples/base-ui-cra/src/App.js | import * as React from 'react';
import './index.css';
export default function App() {
return (
<div className="box">
<h1>Base UI + Create React App scaffold (JavaScript)</h1>
<div className="item">
<a href="https://mui.com/base-ui/">Base UI</a> is a library of unstyled React UI components
... | 5,741 |
0 | petrpan-code/mui/material-ui/examples/base-ui-cra | petrpan-code/mui/material-ui/examples/base-ui-cra/src/index.css | .item {
border: 1px solid #000000;
padding: 20px;
border-radius: 4px;
margin-bottom: 20px;
}
.box {
flex-grow: 1;
max-width: 800px;
margin: auto;
padding: 15px;
font-family: sans-serif;
line-height: 1.5;
}
| 5,742 |
0 | petrpan-code/mui/material-ui/examples/base-ui-cra | petrpan-code/mui/material-ui/examples/base-ui-cra/src/index.js | import * as React from 'react';
import * as ReactDOM from 'react-dom/client';
import App from './App';
const rootElement = document.getElementById('root');
const root = ReactDOM.createRoot(rootElement);
root.render(<App />);
| 5,743 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/README.md | # Base UI - Next.js App Router with Tailwind CSS example in TypeScript
This is a [Next.js](https://nextjs.org/) project bootstrapped using [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with Base UI installed and Tailwind CSS for styles.
## How to use
Download the example... | 5,744 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/next.config.js | /** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
};
module.exports = nextConfig;
| 5,745 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/package.json | {
"name": "base-ui-nextjs-tailwind-ts",
"version": "5.0.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest"
},
"dependencies": {... | 5,746 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/postcss.config.js | module.exports = {
plugins: {
'tailwindcss/nesting': 'postcss-nesting',
tailwindcss: {},
autoprefixer: {},
},
};
| 5,747 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/tailwind.config.js | /** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/app/**/*.{js,ts,jsx,tsx,mdx}', './src/components/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
extend: {},
},
plugins: [],
};
| 5,748 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/tsconfig.json | {
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resol... | 5,749 |
0 | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/src | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/src/app/components.tsx | 'use client';
import * as React from 'react';
import clsx from 'clsx';
import {
Select as BaseSelect,
SelectProps,
SelectOwnerState,
SelectRootSlotProps,
} from '@mui/base/Select';
import { Option, OptionProps, OptionOwnerState } from '@mui/base/Option';
import { Slider as BaseSlider, SliderProps, SliderOwnerSt... | 5,750 |
0 | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/src | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/src/app/globals.css | @tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
/* This is an alternative to using function props and ownerState to style a component. The corresponding Switch component can be rendered in page.tsx without a use-client directive, but you cannot easily import the class names like in JS/... | 5,751 |
0 | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/src | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/src/app/layout.tsx | import * as React from 'react';
import { IBM_Plex_Sans } from 'next/font/google';
import './globals.css';
const font = IBM_Plex_Sans({
weight: ['400', '500', '700'],
subsets: ['latin'],
display: 'swap',
});
export const metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
};
... | 5,752 |
0 | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/src | petrpan-code/mui/material-ui/examples/base-ui-nextjs-tailwind-ts/src/app/page.tsx | import * as React from 'react';
import { Switch } from '@mui/base/Switch';
import { Select, SelectOption, Slider } from './components';
function Heading(props: { children: React.ReactNode }) {
return (
<h2 className="font-bold text-gray-400 uppercase text-base mt-3 mb-2">{props.children}</h2>
);
}
function Se... | 5,753 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/README.md | # Base UI - Vite.js example with Tailwind CSS in TypeScript
[Base UI](https://mui.com/base-ui/) is a library of unstyled React UI components and hooks.
[Vite](https://vitejs.dev/) is a build tool that aims to provide a faster and leaner development experience for modern web projects, consisting of a dev server and a ... | 5,754 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" sr... | 5,755 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/package.json | {
"name": "base-ui-vite-tailwind-ts",
"private": true,
"version": "5.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"... | 5,756 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/postcss.config.js | export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
| 5,757 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/tailwind.config.js | /** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {},
},
plugins: [],
};
| 5,758 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/tsconfig.json | {
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"iso... | 5,759 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/tsconfig.node.json | {
"compilerOptions": {
"composite": true,
"skipLibCheck": true,
"module": "ESNext",
"moduleResolution": "bundler",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}
| 5,760 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/vite.config.ts | import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
});
| 5,761 |
0 | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/public/vite.svg | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%... | 5,762 |
0 | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/src/App.tsx | import * as React from 'react';
export default function App() {
return (
<div className="p-8">
<h1 className="text-3xl font-semibold mb-4">
Base UI + Vite.js + Tailwind CSS in TypeScript
</h1>
<ul>
<li className="card">
<a href="https://mui.com/base-ui/" className="lin... | 5,763 |
0 | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/src/index.css | @tailwind base;
@tailwind components;
@tailwind utilities;
| 5,764 |
0 | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/src/main.tsx | import * as React from 'react';
import * as ReactDOM from 'react-dom/client';
import App from './App.tsx';
import './index.css';
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
<App />
</React.StrictMode>,
);
| 5,765 |
0 | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/src/vite-env.d.ts | /// <reference types="vite/client" />
| 5,766 |
0 | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/src | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind-ts/src/assets/logo.svg | <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 841.9 595.3"><g fill="#61DAFB"><path d="M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6... | 5,767 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/README.md | # Base UI - Vite.js example with Tailwind CSS
[Base UI](https://mui.com/base-ui/) is a library of unstyled React UI components and hooks.
[Vite](https://vitejs.dev/) is a build tool that aims to provide a faster and leaner development experience for modern web projects, consisting of a dev server and a build command
... | 5,768 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<title>Vite + Base UI + Tailwind CSS</title>
</head>
<body>
<div id="root"></div>
<script type="... | 5,769 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/package.json | {
"name": "base-ui-vite-tailwind",
"private": true,
"version": "5.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@mui/base": "latest",
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
... | 5,770 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/postcss.config.js | export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
| 5,771 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/tailwind.config.js | /** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,jsx}'],
theme: {
extend: {},
},
plugins: [],
};
| 5,772 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/vite.config.js | import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
});
| 5,773 |
0 | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/public/vite.svg | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%... | 5,774 |
0 | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/src/App.jsx | import * as React from 'react';
export default function App() {
return (
<div className="p-8">
<h1 className="text-3xl font-semibold mb-4">Base UI + Vite.js + Tailwind CSS</h1>
<ul>
<li className="card">
<a href="https://mui.com/base-ui/" className="link">
Base UI
... | 5,775 |
0 | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/src/main.jsx | import * as React from 'react';
import * as ReactDOM from 'react-dom/client';
import App from './App';
import './styles.css';
ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<App />
</React.StrictMode>,
);
| 5,776 |
0 | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/src/styles.css | @tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
.card {
@apply max-w-[70ch] rounded-lg border border-gray-400 p-6 mb-6;
}
.link {
@apply border-b border-blue-700 text-blue-700 hover:border-b-2 hover:border-blue-400 hover:text-blue-500;
}
}
| 5,777 |
0 | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/src | petrpan-code/mui/material-ui/examples/base-ui-vite-tailwind/src/assets/react.svg | <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.... | 5,778 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts/README.md | # Joy UI - Create React App example in TypeScript
`@mui/joy` is still in early development and is not recommended for use in production.
## How to use
Download the example [or clone the repo](https://github.com/mui/material-ui):
<!-- #default-branch-switch -->
```bash
curl https://codeload.github.com/mui/material-... | 5,779 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts/package.json | {
"name": "joy-ui-cra-ts",
"version": "5.0.0",
"private": true,
"dependencies": {
"@emotion/react": "latest",
"@emotion/styled": "latest",
"@mui/joy": "latest",
"@types/react": "latest",
"@types/react-dom": "latest",
"react": "latest",
"react-dom": "latest",
"react-scripts": "lat... | 5,780 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts/tsconfig.json | {
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolutio... | 5,781 |
0 | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts/public/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<title>CRA + Joy UI + TS</title>
<!-- Fonts to support Joy Design -->
<link rel="preconnect" href... | 5,782 |
0 | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts/public/manifest.json | {
"short_name": "Your Orders",
"name": "Your Orders",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
| 5,783 |
0 | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts/src/App.tsx | import * as React from 'react';
import { CssVarsProvider } from '@mui/joy/styles';
import Button from '@mui/joy/Button';
export default function App() {
return (
<CssVarsProvider>
<Button>Button</Button>
</CssVarsProvider>
);
}
| 5,784 |
0 | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts/src/index.tsx | import * as React from 'react';
import * as ReactDOM from 'react-dom/client';
import App from './App';
const rootElement = document.getElementById('root');
const root = ReactDOM.createRoot(rootElement!);
root.render(<App />);
| 5,785 |
0 | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts | petrpan-code/mui/material-ui/examples/joy-ui-cra-ts/src/react-app-env.d.ts | /// <reference types="react-scripts" />
| 5,786 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/README.md | # Joy UI - Next.js App Router with TypeScript
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## How to use
Download the example [or clone the repo](https://github.com/mui/material-ui):
<!-- #default-bran... | 5,787 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/next.config.js | /** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
};
module.exports = nextConfig;
| 5,788 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/package.json | {
"name": "joy-ui-nextjs-ts",
"version": "5.0.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest"
},
"dependencies": {
"@emo... | 5,789 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/tsconfig.json | {
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "node",
"resol... | 5,790 |
0 | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src/app/layout.tsx | import * as React from 'react';
import ThemeRegistry from '@/components/ThemeRegistry/ThemeRegistry';
export const metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
};
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en"... | 5,791 |
0 | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src/app/page.tsx | import * as React from 'react';
import Sheet from '@mui/joy/Sheet';
import Typography from '@mui/joy/Typography';
import FormControl from '@mui/joy/FormControl';
import FormLabel from '@mui/joy/FormLabel';
import Input from '@mui/joy/Input';
import Button from '@mui/joy/Button';
import Link from '@mui/joy/Link';
expor... | 5,792 |
0 | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src/app | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src/app/sign-up/page.tsx | import * as React from 'react';
import Sheet from '@mui/joy/Sheet';
import Typography from '@mui/joy/Typography';
import FormControl from '@mui/joy/FormControl';
import FormLabel from '@mui/joy/FormLabel';
import Input from '@mui/joy/Input';
import Button from '@mui/joy/Button';
import Link from '@mui/joy/Link';
expor... | 5,793 |
0 | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src/components | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src/components/ThemeRegistry/EmotionCache.tsx | 'use client';
import * as React from 'react';
import createCache from '@emotion/cache';
import { useServerInsertedHTML } from 'next/navigation';
import { CacheProvider as DefaultCacheProvider } from '@emotion/react';
import type { EmotionCache, Options as OptionsOfCreateCache } from '@emotion/cache';
export type NextA... | 5,794 |
0 | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src/components | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src/components/ThemeRegistry/ThemeRegistry.tsx | 'use client';
import * as React from 'react';
import { CssVarsProvider } from '@mui/joy/styles';
import CssBaseline from '@mui/joy/CssBaseline';
import NextAppDirEmotionCacheProvider from './EmotionCache';
import theme from './theme';
export default function ThemeRegistry({ children }: { children: React.ReactNode }) {... | 5,795 |
0 | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src/components | petrpan-code/mui/material-ui/examples/joy-ui-nextjs-ts/src/components/ThemeRegistry/theme.ts | import { extendTheme } from '@mui/joy/styles';
import { Inter, Source_Code_Pro } from 'next/font/google';
const inter = Inter({
subsets: ['latin'],
adjustFontFallback: false, // prevent NextJS from adding its own fallback font
fallback: ['var(--joy-fontFamily-fallback)'], // use Joy UI's fallback font
display:... | 5,796 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/joy-ui-vite-ts/README.md | # Joy UI - Vite.js in TypeScript example
[Joy UI](https://mui.com/joy-ui/getting-started/) is a library of beautifully designed React UI components built to spark joy in the development process.
[Vite](https://vitejs.dev/) is a build tool that aims to provide a faster and leaner development experience for modern web ... | 5,797 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/joy-ui-vite-ts/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="initial-scale=1, width=device-width" />
<title>Vite + Joy UI + TS</title>
<!-- Fonts to support Joy Design -->
<link rel="preconnect" href="... | 5,798 |
0 | petrpan-code/mui/material-ui/examples | petrpan-code/mui/material-ui/examples/joy-ui-vite-ts/package.json | {
"name": "joy-ui-vite-ts",
"private": true,
"version": "5.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
},
"dependencies": {
"@emotion/r... | 5,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.