Files
react-test/docs/data/joy/components/list/ActionableList.js
how2ice 005cf56baf
Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
init project
2025-12-12 14:26:25 +09:00

30 lines
859 B
JavaScript

import List from '@mui/joy/List';
import ListItem from '@mui/joy/ListItem';
import ListItemDecorator from '@mui/joy/ListItemDecorator';
import ListItemButton from '@mui/joy/ListItemButton';
import OpenInNew from '@mui/icons-material/OpenInNew';
import Info from '@mui/icons-material/Info';
export default function ActionableList() {
return (
<List sx={{ maxWidth: 320 }}>
<ListItem>
<ListItemButton onClick={() => alert('You clicked')}>
<ListItemDecorator>
<Info />
</ListItemDecorator>
Clickable item
</ListItemButton>
</ListItem>
<ListItem>
<ListItemButton component="a" href="#actionable">
<ListItemDecorator>
<OpenInNew />
</ListItemDecorator>
Open a new tab
</ListItemButton>
</ListItem>
</List>
);
}