mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
chore: add rollup typescript example to validate definitions
This commit is contained in:
parent
5f9ba52312
commit
48a94cd1bf
9 changed files with 1105 additions and 0 deletions
15
examples/rollup-typescript/src/App.svelte
Normal file
15
examples/rollup-typescript/src/App.svelte
Normal file
|
@ -0,0 +1,15 @@
|
|||
<script lang="ts">
|
||||
import { Button, TooltipDefinition } from "carbon-components-svelte";
|
||||
</script>
|
||||
|
||||
<Button
|
||||
kind="primary"
|
||||
on:click={() => {
|
||||
console.log('click');
|
||||
}}>
|
||||
Primary button
|
||||
</Button>
|
||||
|
||||
<TooltipDefinition tooltipText="Tooltip text">
|
||||
Tooltip content
|
||||
</TooltipDefinition>
|
5
examples/rollup-typescript/src/main.ts
Normal file
5
examples/rollup-typescript/src/main.ts
Normal file
|
@ -0,0 +1,5 @@
|
|||
import App from "./App.svelte";
|
||||
|
||||
const app = new App({ target: document.body });
|
||||
|
||||
export default app;
|
Loading…
Add table
Add a link
Reference in a new issue