// ~/components/index.ts
export { default as Button } from './Button'
export { default as Label } from './Label'
export { default as Toggle } from './Toggle'
// ~/components/Button/Button.tsx
export default function Button() { return <button /> }
// ~/components/Button/index.ts
export { default } from './Button'
// ~/pages/index.tsx
import { Button, Label } from '~/components'
// ~/components/index.ts
export { default as Button } from './Button'
export { default as Label } from './Label'
export { default as Toggle } from './Toggle'
// ~/components/Button/Button.tsx
export default function Button() { return <button /> }
// ~/components/Button/index.ts
export { default } from './Button'
// ~/pages/index.tsx
import { Button, Label } from '~/components'