How to present a dictionary list with ant design?











up vote
0
down vote

favorite












I want to display a dictionary in a nice way. In standard HTML I would use DL tag. I didn't find an analog in ant.design yet.










share|improve this question
























  • Are you using React?
    – baitun
    Nov 9 at 5:14















up vote
0
down vote

favorite












I want to display a dictionary in a nice way. In standard HTML I would use DL tag. I didn't find an analog in ant.design yet.










share|improve this question
























  • Are you using React?
    – baitun
    Nov 9 at 5:14













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to display a dictionary in a nice way. In standard HTML I would use DL tag. I didn't find an analog in ant.design yet.










share|improve this question















I want to display a dictionary in a nice way. In standard HTML I would use DL tag. I didn't find an analog in ant.design yet.







antd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 14:41

























asked Nov 7 at 14:49









Evgeniy Pozdnyakov

11




11












  • Are you using React?
    – baitun
    Nov 9 at 5:14


















  • Are you using React?
    – baitun
    Nov 9 at 5:14
















Are you using React?
– baitun
Nov 9 at 5:14




Are you using React?
– baitun
Nov 9 at 5:14












2 Answers
2






active

oldest

votes

















up vote
0
down vote













When you use the ant-design, you have to install yarn add antd or npm install antd --save



After, the easiest way for ant-design is adding the index.html(ex.For React)



https://cdnjs.com/libraries/antd



You can use these link.



<link type="stylesheet" href="paste the antd css from url">


And then, you will be use this.



Lastly, I recommend to you "min.css" file.






share|improve this answer





















  • TY for explanation how to start using ant.design. However you didn't answer my question.
    – Evgeniy Pozdnyakov
    Nov 12 at 14:45




















up vote
0
down vote













If you use ant.design, it doesn't mean that you can not use standard HTML tags, you can still use them.



For example, this will look nice:



import React from 'react'
import ReactDOM from 'react-dom'
import 'antd/dist/antd.css'

ReactDOM.render(
<div>
<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
</div>,
document.getElementById('container')
)





share|improve this answer





















  • I want all my UI pieces have similar style. So I would avoid writing styles myself.
    – Evgeniy Pozdnyakov
    Nov 12 at 14:45











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53191844%2fhow-to-present-a-dictionary-list-with-ant-design%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













When you use the ant-design, you have to install yarn add antd or npm install antd --save



After, the easiest way for ant-design is adding the index.html(ex.For React)



https://cdnjs.com/libraries/antd



You can use these link.



<link type="stylesheet" href="paste the antd css from url">


And then, you will be use this.



Lastly, I recommend to you "min.css" file.






share|improve this answer





















  • TY for explanation how to start using ant.design. However you didn't answer my question.
    – Evgeniy Pozdnyakov
    Nov 12 at 14:45

















up vote
0
down vote













When you use the ant-design, you have to install yarn add antd or npm install antd --save



After, the easiest way for ant-design is adding the index.html(ex.For React)



https://cdnjs.com/libraries/antd



You can use these link.



<link type="stylesheet" href="paste the antd css from url">


And then, you will be use this.



Lastly, I recommend to you "min.css" file.






share|improve this answer





















  • TY for explanation how to start using ant.design. However you didn't answer my question.
    – Evgeniy Pozdnyakov
    Nov 12 at 14:45















up vote
0
down vote










up vote
0
down vote









When you use the ant-design, you have to install yarn add antd or npm install antd --save



After, the easiest way for ant-design is adding the index.html(ex.For React)



https://cdnjs.com/libraries/antd



You can use these link.



<link type="stylesheet" href="paste the antd css from url">


And then, you will be use this.



Lastly, I recommend to you "min.css" file.






share|improve this answer












When you use the ant-design, you have to install yarn add antd or npm install antd --save



After, the easiest way for ant-design is adding the index.html(ex.For React)



https://cdnjs.com/libraries/antd



You can use these link.



<link type="stylesheet" href="paste the antd css from url">


And then, you will be use this.



Lastly, I recommend to you "min.css" file.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 7 at 17:07









Sean Kim

448




448












  • TY for explanation how to start using ant.design. However you didn't answer my question.
    – Evgeniy Pozdnyakov
    Nov 12 at 14:45




















  • TY for explanation how to start using ant.design. However you didn't answer my question.
    – Evgeniy Pozdnyakov
    Nov 12 at 14:45


















TY for explanation how to start using ant.design. However you didn't answer my question.
– Evgeniy Pozdnyakov
Nov 12 at 14:45






TY for explanation how to start using ant.design. However you didn't answer my question.
– Evgeniy Pozdnyakov
Nov 12 at 14:45














up vote
0
down vote













If you use ant.design, it doesn't mean that you can not use standard HTML tags, you can still use them.



For example, this will look nice:



import React from 'react'
import ReactDOM from 'react-dom'
import 'antd/dist/antd.css'

ReactDOM.render(
<div>
<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
</div>,
document.getElementById('container')
)





share|improve this answer





















  • I want all my UI pieces have similar style. So I would avoid writing styles myself.
    – Evgeniy Pozdnyakov
    Nov 12 at 14:45















up vote
0
down vote













If you use ant.design, it doesn't mean that you can not use standard HTML tags, you can still use them.



For example, this will look nice:



import React from 'react'
import ReactDOM from 'react-dom'
import 'antd/dist/antd.css'

ReactDOM.render(
<div>
<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
</div>,
document.getElementById('container')
)





share|improve this answer





















  • I want all my UI pieces have similar style. So I would avoid writing styles myself.
    – Evgeniy Pozdnyakov
    Nov 12 at 14:45













up vote
0
down vote










up vote
0
down vote









If you use ant.design, it doesn't mean that you can not use standard HTML tags, you can still use them.



For example, this will look nice:



import React from 'react'
import ReactDOM from 'react-dom'
import 'antd/dist/antd.css'

ReactDOM.render(
<div>
<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
</div>,
document.getElementById('container')
)





share|improve this answer












If you use ant.design, it doesn't mean that you can not use standard HTML tags, you can still use them.



For example, this will look nice:



import React from 'react'
import ReactDOM from 'react-dom'
import 'antd/dist/antd.css'

ReactDOM.render(
<div>
<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>
</div>,
document.getElementById('container')
)






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 9 at 5:25









baitun

140110




140110












  • I want all my UI pieces have similar style. So I would avoid writing styles myself.
    – Evgeniy Pozdnyakov
    Nov 12 at 14:45


















  • I want all my UI pieces have similar style. So I would avoid writing styles myself.
    – Evgeniy Pozdnyakov
    Nov 12 at 14:45
















I want all my UI pieces have similar style. So I would avoid writing styles myself.
– Evgeniy Pozdnyakov
Nov 12 at 14:45




I want all my UI pieces have similar style. So I would avoid writing styles myself.
– Evgeniy Pozdnyakov
Nov 12 at 14:45


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53191844%2fhow-to-present-a-dictionary-list-with-ant-design%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Tangent Lines Diagram Along Smooth Curve

Yusuf al-Mu'taman ibn Hud

Zucchini