@mui/icons-material APIs
- Close
- Add
- Delete
- ExpandMore
- Settings
- Check
- Update
- GitHub
- MoreVert
- HelpOutline
- ChevronRight
- ExpandLess
- Menu
- FileCopy
- CheckBox
- CheckBoxOutlineBlank
- ArrowBack
- DeleteForever
- Visibility
- VisibilityOff
- Save
- Person
- Edit
- People
- ChevronLeft
- PlayArrow
- Home
- ExitToApp
- MoreHoriz
- WbSunny
- Download
- Upload
- Search
- HighlightOffOutlined
- ContentCopy
- Calculate
- ShoppingCart
- AccountBalance
- BarChart
- Paid
- Clear
- Cancel
- ArrowDownward
- ArrowUpward
- PhotoCamera
- Folder
- InfoOutlined
- Code
- KeyboardArrowDown
- Lock
- LockOpen
- Replay
- Favorite
- Build
- Refresh
- AssignmentInd
- Pets
- Public
- Group
- Brush
- KeyboardTab
- Phone
- HelpOutlineOutlined
- NetworkWifi
- CompareArrows
- AdminPanelSettings
- BugReport
- Logout
- Message
- AddCircle
- LockOutlined
- HomeOutlined
- BarChartOutlined
- MusicNote
- MusicNoteOutlined
- Album
- AlbumOutlined
- PersonOutlined
- SettingsOutlined
- Share
- ShareOutlined
- FastRewind
- Help
- Loop
- VolumeDown
- VolumeUp
- PauseCircle
- PlayCircle
- VolumeOff
- ChatBubbleOutline
- LockRounded
- WifiOffRounded
- VideocamOutlined
- AddRounded
- MoreVertRounded
- SyncProblem
- VideoCallOutlined
- GetAppRounded
- SaveAlt
- ErrorRounded
- InsertDriveFileRounded
- CheckCircleOutline
- CloudOff
- ClearAll
- CloseOutlined
- Link
- AttachmentOutlined
- CodeOutlined
- MailOutlineRounded
- Brightness7Rounded
- MenuRounded
- NightsStayRounded
- ArrowForward
- BrushRounded
- VisibilityRounded
- FileCopyRounded
- FavoriteRounded
- DesktopMacRounded
- PhoneAndroidRounded
- TabletMac
- ThumbUpOutlined
- ThumbDownOutlined
- AssistantPhotoOutlined
- Publish
- Create
- WbCloudy
- Computer
- KeyboardArrowUp
- BusinessCenter
- FavoriteBorder
- Groups
- Shuffle
- Difference
- SwapHoriz
- Info
- KeyboardDoubleArrowDown
- KeyboardDoubleArrowUp
- PersonAdd
- Checkroom
- FactCheck
- ArrowRightAlt
- Scanner
- Brightness4
- Brightness7
- Translate
- Backpack
- SettingsBrightness
- Equalizer
- Handyman
- SentimentVerySatisfied
- SentimentDissatisfied
- SentimentSatisfied
- AccessTime
- Remove
- ArrowDropDown
- ArrowRight
- Undo
- Redo
- CreateNewFolder
- Description
- Outbox
- Inbox
- DriveFileRenameOutline
- ContentPaste
- Block
- Star
- StarBorder
- Security
- Today
- Event
- Login
- Sick
- FaceRetouchingOff
- Fireplace
- ErrorOutline
- Stop
- ViewList
- Send
- PlayCircleFilledWhite
- PlaylistAddCheck
- Telegram
- VerifiedUser
- Notifications
- MenuOpen
- GppGood
- ContactPhone
- Payment
- FolderShared
- Class
- Shield
- MoveUp
- VolunteerActivism
- DisplaySettings
- Apartment
- BusAlert
- Category
- FilterNone
- Forest
- MedicalServices
- School
- SportsTennis
- TheaterComedy
- ReportGmailerrorred
- ArrowCircleUp
- UploadFile
- YouTube
- Web
- AccountCircle
- AccessibilityNew
- Chat
- FolderOpen
- FileCopyOutlined
- KeyboardBackspace
- CheckCircleOutlined
- ReportProblemOutlined
- ManageAccounts
- PhotoLibrary
- SettingsBackupRestore
- SupervisorAccount
- Api
- FeaturedPlayList
- BugReportOutlined
- NewReleases
- ColorLens
- FolderOutlined
- Apps
- SpeakerNotes
- LocalCafe
- BurstModeSharp
- DevicesOther
- VideoLibrary
- AddOutlined
- DeleteOutlineOutlined
- EditOutlined
- MoreHorizOutlined
- Bookmarks
- CopyAll
- InsertComment
- KeyboardArrowRight
- FileDownload
- Done
- PendingOutlined
- HelpOutlineRounded
- ReportProblem
- HelpOutlined
Other Related APIs
@mui/icons-material#CodeOutlined TypeScript Examples
The following examples show how to use
@mui/icons-material#CodeOutlined.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TemplateDetailPage.tsx From fluttertemplates.dev with MIT License | 4 votes |
function RenderBody(props: TemplateCardProps) {
const router = useRouter();
const [selectedTab, setSelectedTab] = useState(0);
const handleTabChange = (event: any, newValue: any) => {
setSelectedTab(newValue);
};
const _frontmatter = props.frontmatter;
const _hasMdContent = props.content.toString().length != 0;
function renderTabs(selectedTab: number) {
if (_hasMdContent && selectedTab == 0) {
return (
<div
style={{
width: "100%",
height: "80%",
overflowX: "hidden",
overflowY: "auto",
}}
>
<ReactMarkdown
children={props.content}
remarkPlugins={[remarkGfm]}
rehypePlugins={[rehypeRaw]}
linkTarget="_blank"
components={{
img: ({ node, ...props }) => (
<img {...props} width="100%" height="100%" />
),
tr: ({ node, ...props }) => (
<Grid container spacing={1}>
{props.children}
</Grid>
),
td: ({ node, ...props }) => (
<Grid item xs={4}>
{props.children}
</Grid>
),
}}
/>
</div>
);
} else if (
(!_hasMdContent && selectedTab == 0) ||
(_hasMdContent && selectedTab == 1)
) {
return (
<Code
codeGistUrl={_frontmatter.codeGistUrl}
fullCodeUrl={_frontmatter.codeUrl}
/>
);
} else if (
(!_hasMdContent && selectedTab == 1) ||
(_hasMdContent && selectedTab == 2)
) {
return <PackagesUsed packages={_frontmatter.packages ?? []} />;
} else {
return <PageNotFoundPage />;
}
}
return (
<Grid
container
style={{
marginTop: "2rem",
}}
spacing={2}
justifyContent="center"
>
{!(_frontmatter.isProtected ?? false) && (
<Grid
item
md={6}
style={{
height: "90vh",
width: "100%",
}}
>
<Card elevation={0}>
<Typography
component="h5"
variant="h5"
style={{
fontWeight: "bold",
marginLeft: "1rem",
marginTop: "1rem",
}}
>
{_frontmatter.title}
</Typography>
{_frontmatter.categories && _frontmatter.categories.length > 0 && (
<div
style={{
marginLeft: "1rem",
marginBottom: "-10px",
}}
>
<CategoriesList
categories={_frontmatter.categories}
selected={""}
showAll={false}
/>
</div>
)}
<Tabs
value={selectedTab}
onChange={handleTabChange}
indicatorColor="secondary"
textColor="inherit"
centered
>
{_hasMdContent && (
<Tab
label="About"
icon={
<InfoOutlined
style={{
marginTop: "8px",
marginRight: "8px",
}}
/>
}
/>
)}
<Tab
label="Code"
icon={
<CodeOutlined
style={{
marginTop: "8px",
marginRight: "8px",
}}
/>
}
/>
<Tab
label="Packages Used"
icon={
<AttachmentOutlined
style={{
marginTop: "8px",
marginRight: "8px",
}}
/>
}
/>
</Tabs>
</Card>
{renderTabs(selectedTab)}
</Grid>
)}
<Grid
item
md={6}
style={{
display: "flex",
justifyContent: "center",
}}
>
<div
style={{
height: "80vh",
width: "calc(80vh/17 * 9)",
margin: "8px",
}}
>
<CustomIframe
url={_frontmatter.demoUrl}
showLoadingIndicator={true}
style={{
borderRadius: "16px",
border: "4px solid grey",
}}
/>
</div>
</Grid>
</Grid>
);
}