mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
40 lines
807 B
Svelte
40 lines
807 B
Svelte
<script>
|
|
import { ComponentAPI } from '../../Component';
|
|
|
|
const props = [
|
|
{
|
|
name: 'type',
|
|
type: 'string',
|
|
required: true,
|
|
value: ['inline', 'single', 'multi'],
|
|
defaultValue: { value: 'single' },
|
|
description: `
|
|
<div>
|
|
<strong>Inline</strong> An inline <code>CodeSnippet</code> contains
|
|
</div>
|
|
`
|
|
},
|
|
{
|
|
name: 'light',
|
|
type: 'boolean',
|
|
required: false,
|
|
value: [],
|
|
defaultValue: { value: false },
|
|
description: `
|
|
<div>Light variant</div>
|
|
`
|
|
},
|
|
{
|
|
name: 'code',
|
|
type: 'string',
|
|
required: true,
|
|
value: [],
|
|
defaultValue: { value: undefined },
|
|
description: `
|
|
<div>Light variant</div>
|
|
`
|
|
}
|
|
];
|
|
</script>
|
|
|
|
<ComponentAPI {props} />
|