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
37 lines
882 B
JavaScript
37 lines
882 B
JavaScript
import Chip from '@mui/joy/Chip';
|
|
import JoyUsageDemo from 'docs/src/modules/components/JoyUsageDemo';
|
|
|
|
export default function ChipUsage() {
|
|
return (
|
|
<JoyUsageDemo
|
|
componentName="Chip"
|
|
data={[
|
|
{
|
|
propName: 'variant',
|
|
knob: 'radio',
|
|
defaultValue: 'soft',
|
|
options: ['plain', 'outlined', 'soft', 'solid'],
|
|
},
|
|
{
|
|
propName: 'color',
|
|
knob: 'color',
|
|
defaultValue: 'neutral',
|
|
},
|
|
{
|
|
propName: 'size',
|
|
knob: 'radio',
|
|
options: ['sm', 'md', 'lg'],
|
|
defaultValue: 'md',
|
|
},
|
|
{
|
|
propName: 'disabled',
|
|
knob: 'switch',
|
|
defaultValue: false,
|
|
},
|
|
{ propName: 'onClick', defaultValue: () => {} },
|
|
]}
|
|
renderDemo={(props) => <Chip {...props}>Chip</Chip>}
|
|
/>
|
|
);
|
|
}
|