-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: addes jsdoc and storybook autodocs
- Loading branch information
Showing
30 changed files
with
579 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
import * as React from 'react'; import { cn } from '~/lib/utils'; type Props = { className?: string; }; export function | ||
{{pascalCase name}}({ className, ...props }: Props) { return ( | ||
<div data-testid='{{snakeCase name}}' className="{cn(''," className)}> | ||
Hello, world! | ||
</div> | ||
); } | ||
import { cn } from '~/lib/utils'; | ||
|
||
/** | ||
* Props for the {{pascalCase name}} component. | ||
*/ | ||
type {{pascalCase name}}Props = { | ||
/** Optional additional class names for custom styling. */ | ||
className?: string; | ||
}; | ||
|
||
export function {{pascalCase name}}({ className }: {{pascalCase name}}Props) { | ||
// Add more section comments here, e.g. "Constants", "State", "Hooks", "Derived State", "Utils", "Render", etc. | ||
|
||
/* JSX */ | ||
|
||
return ( | ||
<div data-testid='{{snakeCase name}}' className={cn('', className)}> | ||
Hello, {{pascalCase name}}! | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.