Composables

Reusable composables and utilities for EletroDS applications.

Composables are reusable functions that provide common functionality for Vue applications using EletroDS.

Available Composables

setupI18n
Configure internationalization (i18n) support for EletroDS components.

What are Composables?

Composables are Vue 3 composition functions that encapsulate reusable logic. They follow the naming convention use* and can be used across your application to share stateful logic, side effects, and more.

Composables leverage Vue 3's Composition API to provide reactive, composable functionality.

Usage Pattern

All EletroDS composables follow a consistent pattern:

import { useComposable } from '@mercadoeletronico/eds-next'

const { property, method } = useComposable()

Next Steps

Explore individual composables to learn more about their specific functionality and usage.