Skip to content

Commit

Permalink
fix(Rating): added class identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
N00nDay committed Oct 5, 2023
1 parent 6cd08e3 commit cf8d789
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
14 changes: 12 additions & 2 deletions src/routes/rating/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
<script lang="ts">
import { Rating } from '../../lib';
import { example, halfExample, sizeExample, showValueExample, props, usage } from './examples';
import { PropsTable, CodeBlock, ExampleContainer } from '../../docs';
import {
example,
halfExample,
sizeExample,
showValueExample,
props,
usage,
classList
} from './examples';
import { PropsTable, ClassTable, CodeBlock, ExampleContainer } from '../../docs';
</script>

<h4 class="text-content pb-2">Usage</h4>
Expand Down Expand Up @@ -63,3 +71,5 @@
</ExampleContainer>

<PropsTable component="Rating" {props} />

<ClassTable component="Rating" {classList} />
9 changes: 8 additions & 1 deletion src/routes/rating/examples.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Prop } from '../../docs';
import type { IClass, Prop } from '../../docs';

export const props: Prop[] = [
{
Expand Down Expand Up @@ -51,6 +51,13 @@ export const props: Prop[] = [
}
];

export const classList: IClass[] = [
{
id: '1',
class: 'stwui-rating'
}
];

export const usage = `
import { Rating } from 'stwui';
// OR
Expand Down

0 comments on commit cf8d789

Please sign in to comment.