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
53 lines
1.2 KiB
JavaScript
53 lines
1.2 KiB
JavaScript
import Link from '@mui/joy/Link';
|
|
import JoyUsageDemo from 'docs/src/modules/components/JoyUsageDemo';
|
|
|
|
export default function LinkUsage() {
|
|
return (
|
|
<JoyUsageDemo
|
|
componentName="Link"
|
|
data={[
|
|
{
|
|
propName: 'level',
|
|
knob: 'select',
|
|
options: [
|
|
'h1',
|
|
'h2',
|
|
'h3',
|
|
'h4',
|
|
'title-lg',
|
|
'title-md',
|
|
'title-sm',
|
|
'body-lg',
|
|
'body-md',
|
|
'body-sm',
|
|
'body-xs',
|
|
],
|
|
defaultValue: 'body-md',
|
|
},
|
|
{
|
|
propName: 'underline',
|
|
knob: 'radio',
|
|
options: ['hover', 'always', 'none'],
|
|
defaultValue: 'hover',
|
|
},
|
|
{
|
|
propName: 'variant',
|
|
knob: 'radio',
|
|
options: ['plain', 'outlined', 'soft', 'solid'],
|
|
},
|
|
{
|
|
propName: 'color',
|
|
knob: 'color',
|
|
defaultValue: 'primary',
|
|
},
|
|
{ propName: 'disabled', knob: 'switch' },
|
|
]}
|
|
renderDemo={(props) => (
|
|
<Link {...props} href="#usage-props">
|
|
Anchor
|
|
</Link>
|
|
)}
|
|
/>
|
|
);
|
|
}
|