new Button(onClick, color, paddingY, textSize) → {JSX}
Bouton : les boutons rectangles de l'application
Parameters:
| Name | Type | Description |
|---|---|---|
onClick |
function | Fonction qui s'execute lorsqu'on clique sur le bouton |
color |
string | Css color tailwind du bouton |
paddingY |
string | Css padding axe Y tailwind du bouton |
textSize |
string | Css taille du texte tailwind du bouton |
- Source:
Returns:
Le rendu jsx du bouton.
- Type
- JSX
Example
<Button onClick={play} color='bg-indigo-500 text-white ring-indigo-200 hover:bg-indigo-400 active:bg-indigo-800 mt-5' paddingY="py-3" textSize="text-lg">
//buttonContent
</Button>