# Base Properties

UI Kit components share base properties for styling, accessibility and testing. Each component’s props define which properties it supports and where they apply.

## Core Properties

- **`qa`** `string` — Data attribute for e2e testing (`data-qa`)
- **`qaVal`** `string` — Value for the qa attribute
- **`styles`** `Styles` — Tasty styles object
- **`css`** `string` — Raw CSS string
- **`mods`** `Mods` — State modifiers for conditional styling
- **`tokens`** `Tokens` — Custom-property values, applied as inline custom properties on the element
- **`breakpoints`** — Responsive breakpoint configuration
- **`hidden`** `boolean` — Hide the element
- **`isHidden`** `boolean` — Hide the element
- **`disabled`** `boolean` — Disabled state
- **`isChecked`** `boolean` — Renders `data-checked`, which the `checked` modifier resolves against in `styles`
- **`block`** `boolean` — Display as block
- **`inline`** `boolean` — Display as inline

## Component-specific properties

Use `theme` where the component documents an appearance variant, such as `Button`, `Alert`, `Select` or `ColorPicker`. Use `title` where it is a content prop, such as on `Layout.Header` or `Tabs.Tab`. For a control’s name or hint, use its label, description or tooltip API. Tasty’s `element` names a slot when authoring a styled element.

## Third-party integrations

`className` and inline `style` are available on component roots that expose them. Use them for integrations that supply a class or CSS style object. For ordinary UI Kit customization, use component props, `tokens`, `mods` and supported Tasty style props.

## Style Properties

Style properties allow direct styling without using the `styles` prop. They are defined in `@tenphi/tasty` and exposed via `styleProps` on components.

### BASE_STYLES

`display`, `font`, `preset`, `hide`, `whiteSpace`, `opacity`, `transition`

### POSITION_STYLES

`gridArea`, `order`, `gridColumn`, `gridRow`, `placeSelf`, `alignSelf`, `justifySelf`, `zIndex`, `margin`, `inset`, `position`

### DIMENSION_STYLES

`width`, `height`, `flexBasis`, `flexGrow`, `flexShrink`, `flex`

### BLOCK_STYLES

**Inner:** `padding`, `paddingInline`, `paddingBlock`, `overflow`, `scrollbar`, `textAlign`

**Outer:** `border`, `radius`, `shadow`, `outline`

### COLOR_STYLES

`color`, `fill`, `fade`, `image`

### TEXT_STYLES

`textTransform`, `fontWeight`, `fontStyle`

### FLOW_STYLES

`flow`, `placeItems`, `placeContent`, `alignItems`, `alignContent`, `justifyItems`, `justifyContent`, `align`, `justify`, `gap`, `columnGap`, `rowGap`, `gridColumns`, `gridRows`, `gridTemplate`, `gridAreas`

### CONTAINER_STYLES

Combination of BASE_STYLES, COLOR_STYLES, DIMENSION_STYLES, POSITION_STYLES, BLOCK_STYLES, and FLOW_STYLES.

### OUTER_STYLES

Position and dimension styles: POSITION_STYLES, DIMENSION_STYLES, BLOCK_OUTER_STYLES.

## Usage

```jsx
<Button qa="SubmitButton" width="100%" padding="1x 2x">
  Submit
</Button>

<Card mods={{ hovered: isHovered }} fill="#surface" radius="1r">
  Content
</Card>
```

## Related

- [Tasty documentation](https://github.com/tenphi/tasty) — Full styling system reference
- [CreateComponent](./CreateComponent.md) — Building components with base properties
