mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
chore: hooks exported, plop template modified
This commit is contained in:
parent
c8e4a861e9
commit
67a3f7af60
@ -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};
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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": {
|
||||
|
||||
@ -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}}';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user