Skip to content

Commit

Permalink
fix: typescript page
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokada committed Sep 11, 2023
1 parent d1bc008 commit 6f266f4
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/routes/docs/pages/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@ description: Learn more about the value types and class interfaces that you can

## Typescript types

Enhance the reliability and scalability of your user interface code by leveraging data types. Here's an example of how to use them:
Enhance the reliability and scalability of your user interface code by leveraging data types. Here's an example of how to use them:

```svelte example hideOutput
<script lang="ts">
import type { SizeType } from 'flowbite-svelte'
```
import { Button } from 'flowbite-svelte';
import type { SizeType } from 'flowbite-svelte'
export let size: SizeType = 'lg'
</script>
<Button {size} />
```

The following excerpt shows you the full list of TypeScript types and interfaces that are being used with the Flowbite Svelte library.
Expand Down

2 comments on commit 6f266f4

@vercel
Copy link

@vercel vercel bot commented on 6f266f4 Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 6f266f4 Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.