---
order: 99
title:
zh-CN: 文本对齐
en-US: Text Align
debug: true
---
```jsx
import {
Typography,
Button,
Input,
Select,
Cascader,
TreeSelect,
DatePicker,
TimePicker,
InputNumber,
Radio,
AutoComplete,
Mentions,
} from 'antd';
const { Text } = Typography;
const { Option } = Select;
const { RangePicker } = DatePicker;
const narrowStyle = {
width: 50,
};
const options = [
{
value: 'zhejiang',
label: 'Zhejiang',
children: [
{
value: 'hangzhou',
label: 'Hangzhou',
children: [
{
value: 'xihu',
label: 'West Lake',
},
],
},
],
},
{
value: 'jiangsu',
label: 'Jiangsu',
children: [
{
value: 'nanjing',
label: 'Nanjing',
children: [
{
value: 'zhonghuamen',
label: 'Zhong Hua Men',
},
],
},
],
},
];
ReactDOM.render(
<>
Ant Design
Hangzhou
Shanghai
>,
mountNode,
);
```