glendix/react/attribute

Types

HTML/React 속성

pub type Attribute

Values

pub fn accept(value: String) -> Attribute
pub fn accept_charset(value: String) -> Attribute

폼 문자 인코딩

pub fn access_key(value: String) -> Attribute

키보드 단축키

pub fn action(value: String) -> Attribute
pub fn allow(value: String) -> Attribute

iframe 허용 기능 정책

pub fn alt(value: String) -> Attribute
pub fn aria(name: String, value: String) -> Attribute

aria-* 속성

pub fn attribute(key: String, content: a) -> Attribute

범용 속성 생성 (escape hatch)

pub fn auto_capitalize(value: String) -> Attribute

모바일 대문자 변환 (“none” | “sentences” | “words” | “characters”)

pub fn autocomplete(value: String) -> Attribute
pub fn autofocus(value: Bool) -> Attribute
pub fn autoplay(value: Bool) -> Attribute

미디어 자동 재생

pub fn capture_(value: String) -> Attribute

파일 입력 카메라 선택 (“user” | “environment”)

pub fn checked(value: Bool) -> Attribute
pub fn cite_attr(value: String) -> Attribute

blockquote/del/ins/q 인용 소스 URL

pub fn class(value: String) -> Attribute

className 설정 (여러 번 호출 시 자동 병합)

pub fn class_name(value: String) -> Attribute

className 별칭 (class와 동일)

pub fn classes(values: List(String)) -> Attribute

여러 클래스명을 공백으로 결합

pub fn col_span(value: Int) -> Attribute
pub fn cols(value: Int) -> Attribute
pub fn content(value: String) -> Attribute

content 속성

pub fn content_editable(value: Bool) -> Attribute
pub fn controls(value: Bool) -> Attribute

미디어 컨트롤 표시

pub fn coords(value: String) -> Attribute

이미지 맵 좌표

pub fn cross_origin(value: String) -> Attribute

CORS 요청 모드 (“anonymous” | “use-credentials”)

pub fn dangerously_set_inner_html(html: String) -> Attribute

dangerouslySetInnerHTML 설정

pub fn data(name: String, value: String) -> Attribute

data-* 속성

pub fn datetime(value: String) -> Attribute

변경 일시 (del/ins/time 요소)

pub fn default_checked(value: Bool) -> Attribute

비제어 체크박스 기본 체크 상태

pub fn default_value(value: String) -> Attribute

비제어 컴포넌트 기본값

pub fn dir(value: String) -> Attribute

텍스트 방향 (“ltr” | “rtl” | “auto”)

pub fn dirname(value: String) -> Attribute

텍스트 방향성 제출 이름

pub fn disabled(value: Bool) -> Attribute
pub fn download(value: String) -> Attribute

다운로드 파일명

pub fn draggable(value: Bool) -> Attribute
pub fn element_timing(value: String) -> Attribute

성능 타이밍 측정 식별자

pub fn enctype(value: String) -> Attribute

폼 인코딩 타입

pub fn enter_key_hint(value: String) -> Attribute

모바일 Enter 키 동작 (“enter” | “done” | “go” | “next” | “previous” | “search” | “send”)

pub fn export_parts(value: String) -> Attribute

Shadow DOM 파트 내보내기

pub fn fetch_priority(value: String) -> Attribute

리소스 로딩 우선순위 (“high” | “low” | “auto”)

pub fn for(value: String) -> Attribute

htmlFor 설정

pub fn form(value: String) -> Attribute

연결할 form 요소 ID

pub fn form_action(value: String) -> Attribute

폼 액션 URL

pub fn form_enctype(value: String) -> Attribute

버튼 폼 인코딩 타입

pub fn form_method(value: String) -> Attribute

폼 제출 HTTP 메서드 (submit 버튼용)

pub fn form_no_validate(value: Bool) -> Attribute

버튼 폼 유효성 검증 비활성화

pub fn form_target(value: String) -> Attribute

폼 제출 대상 (submit 버튼용)

pub fn headers(value: String) -> Attribute

관련 헤더 셀 ID 목록

pub fn height(value: String) -> Attribute
pub fn hidden(value: Bool) -> Attribute
pub fn href(value: String) -> Attribute
pub fn html_for(value: String) -> Attribute

htmlFor 별칭 (for와 동일)

pub fn id(value: String) -> Attribute
pub fn inert(value: Bool) -> Attribute

요소 비활성화 (포커스/클릭/입력 불가)

pub fn input_mode(value: String) -> Attribute

가상 키보드 입력 모드 (“none” | “text” | “decimal” | “numeric” | “tel” | “search” | “email” | “url”)

pub fn is(value: String) -> Attribute

커스텀 요소 사양

pub fn item_id(value: String) -> Attribute

마이크로데이터 항목 ID

pub fn item_prop(value: String) -> Attribute

마이크로데이터 속성명

pub fn item_ref(value: String) -> Attribute

마이크로데이터 참조 ID

pub fn item_scope(value: String) -> Attribute

마이크로데이터 범위 설정

pub fn item_type(value: String) -> Attribute

마이크로데이터 타입 URL

pub fn key(value: String) -> Attribute
pub fn lang(value: String) -> Attribute

요소 언어 코드 (BCP 47)

pub fn list(value: String) -> Attribute

datalist 연결 ID

pub fn loading(value: String) -> Attribute

리소스 로딩 전략 (“lazy” | “eager”)

pub fn loop(value: Bool) -> Attribute

미디어 반복 재생

pub fn max(value: String) -> Attribute
pub fn max_length(value: Int) -> Attribute

최대 입력 길이

pub fn media(value: String) -> Attribute

미디어 쿼리 조건

pub fn method(value: String) -> Attribute
pub fn min(value: String) -> Attribute
pub fn min_length(value: Int) -> Attribute

최소 입력 길이

pub fn multiple(value: Bool) -> Attribute
pub fn muted(value: Bool) -> Attribute

미디어 음소거

pub fn name(value: String) -> Attribute
pub fn no_validate(value: Bool) -> Attribute

폼 유효성 검증 비활성화

pub fn nonce(value: String) -> Attribute

CSP nonce

pub fn none() -> Attribute

조건부 속성 (렌더링 시 무시됨)

pub fn open(value: Bool) -> Attribute
열림 상태
pub fn part(value: String) -> Attribute

CSS Shadow Parts 노출

pub fn pattern(value: String) -> Attribute

입력 유효성 검증 패턴 (정규식)

pub fn placeholder(value: String) -> Attribute
pub fn popover(value: String) -> Attribute

Popover API (“auto” | “manual”)

pub fn popover_target(value: String) -> Attribute

Popover 대상 요소 ID

pub fn popover_target_action(value: String) -> Attribute

Popover 동작 (“show” | “hide” | “toggle”)

pub fn poster(value: String) -> Attribute

비디오 포스터 이미지 URL

pub fn preload(value: String) -> Attribute

미디어 사전 로드 정책 (“none” | “metadata” | “auto”)

pub fn readonly(value: Bool) -> Attribute
pub fn ref(ref: react.Ref(a)) -> Attribute
pub fn ref_(callback: fn(a) -> Nil) -> Attribute

callback ref (DOM 요소 접근)

pub fn rel(value: String) -> Attribute

링크 관계

pub fn required(value: Bool) -> Attribute
pub fn role(value: String) -> Attribute
pub fn row_span(value: Int) -> Attribute
pub fn rows(value: Int) -> Attribute
pub fn sandbox(value: String) -> Attribute

iframe 샌드박스 정책

pub fn scope(value: String) -> Attribute

테이블 헤더 범위 (“row” | “col” | “rowgroup” | “colgroup”)

pub fn selected(value: Bool) -> Attribute
pub fn shape(value: String) -> Attribute

이미지 맵 영역 형태 (“rect” | “circle” | “poly” | “default”)

pub fn size(value: Int) -> Attribute

select/input 크기

pub fn sizes(value: String) -> Attribute

반응형 이미지 미디어 조건별 크기

pub fn slot(value: String) -> Attribute

웹 컴포넌트 슬롯 이름

pub fn spell_check(value: Bool) -> Attribute

맞춤법 검사 활성화

pub fn src(value: String) -> Attribute
pub fn srcset(value: String) -> Attribute

반응형 이미지 소스 세트

pub fn step(value: String) -> Attribute
pub fn style(styles: List(#(String, String))) -> Attribute

인라인 스타일 (CSS 속성명 자동 camelCase 변환)

pub fn suppress_content_editable_warning(
  value: Bool,
) -> Attribute

contentEditable 경고 억제

pub fn suppress_hydration_warning(value: Bool) -> Attribute

하이드레이션 경고 억제

pub fn tab_index(value: Int) -> Attribute
pub fn target(value: String) -> Attribute
pub fn title(value: String) -> Attribute
pub fn translate(value: String) -> Attribute

번역 가능 여부 (“yes” | “no”)

pub fn type_(value: String) -> Attribute
pub fn value(val: String) -> Attribute
pub fn width(value: String) -> Attribute
pub fn wrap(value: String) -> Attribute

textarea 줄바꿈 모드 (“soft” | “hard”)

Search Document