Overview
The NDK Svelte Components library offers a set of reusable components designed specifically for Svelte applications. It captures the essential UI elements needed for displaying events, user information, and relays in a clean and efficient manner. Leveraging the power of Svelte’s reactive framework, these components streamline the development process while ensuring a polished user experience.
Whether you’re creating an event-driven application or need user-centric features, NDK Svelte Components provides a robust solution. With installation managed through pnpm and integrated with Storybook for documentation and testing, developers can easily get started and see the components in action.
Features
- EventCard: Displays a card format for showcasing event details, enhancing user engagement with visually appealing content.
- EventContent: Formats event information for use within the EventCard, supporting various kinds of events including embedded versions.
- User Avatar: Shows a quick visual representation of a user, making it easy to personalize interactions within applications.
- User Name: Displays the name of a user, adding a layer of identification and connection in community-driven applications.
- RelayList: Provides a list of relays connected to the NDK instance, along with real-time stats on subscriptions and connectivity, promoting transparency in data connectivity.
- Easy Installation: Managed via pnpm, simplifying the setup process for developers and ensuring faster dependency management.
- Storybook Integration: Documentation is readily available for each component, allowing users to see live demos and understand the usage effectively.