UNPKG
@nicolsam/accordion
Version:
latest (0.0.10)
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
A simple library to create a accordion component
github.com/nicolsam/accordion
nicolsam/accordion
@nicolsam/accordion
/
dist
/
index.d.ts
11 lines
(9 loc)
•
302 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/// <reference types="react" />
interface
AccordionProps
{
title
:
string
;
titleColor
?:
string
;
titleBackground
?:
string
;
children
:
string
|
JSX
.
Element
; }
declare
const
Accordion
:
(
{ title, titleColor, titleBackground, children }:
AccordionProps
) =>
JSX
.
Element
;
export
{
Accordion
};