raw3d-ui
Version:
A 3D UI component library built for the Log It Raw community, starting with a mechanical keycap button.
24 lines (23 loc) • 701 B
TypeScript
import { type ReactNode } from 'react';
/**
* Provides sound management context to child components.
* @component
* @param {Object} props - The properties for the SoundProvider component.
* @param {ReactNode} props.children - The child components to wrap with sound context.
* @returns {JSX.Element} The rendered SoundProvider.
* @example
* ```tsx
* import { SoundProvider, Button3D } from 'raw3d-ui';
*
* function App() {
* return (
* <SoundProvider>
* <Button3D aria-label="Left Arrow">←</Button3D>
* </SoundProvider>
* );
* }
* ```
*/
export declare const SoundProvider: ({ children }: {
children: ReactNode;
}) => import("react/jsx-runtime").JSX.Element;