chore: hooks exported, plop template modified

This commit is contained in:
Junior Garcia 2023-02-18 10:25:01 -03:00
parent c8e4a861e9
commit 67a3f7af60
5 changed files with 13 additions and 1 deletions

View File

@ -5,5 +5,9 @@ import AvatarGroup from "./avatar-group";
export type {AvatarProps} from "./avatar";
export type {AvatarGroupProps} from "./avatar-group";
// export hooks
export {useAvatar} from "./use-avatar";
export {useAvatarGroup} from "./use-avatar-group";
// export component
export {Avatar, AvatarGroup};

View File

@ -1,6 +1,9 @@
// export types
export type {LinkProps} from "./link";
// export hooks
export {useLink} from "./use-link";
// export component
export {LinkIcon} from "./link-icon";
export {default as Link} from "./link";

View File

@ -1,5 +1,8 @@
// export types
export type {UserProps} from "./user";
// export hooks
export {useUser} from "./use-user";
// export component
export {default as User} from "./user";

View File

@ -39,7 +39,6 @@
"dependencies": {
"@nextui-org/system": "workspace:*",
"@nextui-org/shared-utils": "workspace:*",
"@nextui-org/shared-css": "workspace:*",
"@nextui-org/dom-utils": "workspace:*"
},
"devDependencies": {

View File

@ -1,5 +1,8 @@
// export types
export type { {{capitalize componentName}}Props } from "./{{componentName}}";
// export hooks
export { use{{capitalize componentName}} } from "./use-{{componentName}}";
// export component
export { default as {{capitalize componentName}} } from './{{componentName}}';