0.0.7 • Published 4 years ago

@stefanlazarevic/components.button v0.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Button

Инсталација

npm i @stefanlazarevic/components.button

или

yarn add @stefanlazarevic/components.button

Коришћење

import Button from "@stefanlazarevic/components.button";
<Button>Садржај компоненте</Button>

API

називтипподразумевана вредностопис
aria-controlsstringundefinedread
aria-expandedstringundefinedread
aria-haspopupstringundefinedread
aria-labelstringundefinedread
aria-labelledbystringundefinedread
aria-pressedstringundefinedread
autoFocusbooleanundefinedread
childrenReactNodeLikeundefinedread
classNamestringundefinedread
disabledbooleanundefinedread
formstringundefinedread
idstringundefinedread
langstringundefinedread
onBlur(event: React.FocusEvent) => voidundefinedread
onClick(event: React.MouseEvent) => voidundefinedread
onFocus(event: React.FocusEvent) => voidundefinedread
onKeyDown(event: React.KeyboardEvent) => voidundefinedread
styleobjectundefinedread
tabIndexnumberundefinedread
testidstringundefinedread
titlestringundefinedread
typestring"button"read

aria-controls

aria-expanded

aria-haspopup

aria-label

aria-labelledby

aria-pressed

autoFocus

Овај атрибут говори да компонента треба да буде у стању фокуса приликом учитавања странице. Само једна компонента на страници може поседовати ово стање приликом учитавања. Уколико више компоненти поседује овај атрибут, само последње учитана компонента на страници ће бити у стању фокуса.

children

className

disabled

Овај атрибут онемогућава интеракцију са компонентом, па тако компонента не може бити фокусирана као ни кликнута.

form

Вредност овог атрибута мора бити id Form компоненте којој компонента припада. Уколико овај атрибут није постављен, подразумева се да компонента припада првој родитељској Form компоненти.

id

lang

Атрибут који дефинише језик садржаја који компонента приказује.

Списак доступних вредности

onBlur

onClick

onFocus

onKeyDown

style

tabIndex

testid

title

Садржи додатни текст који кориснику пружа информације о садржају компоненте.

type