Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

docs(faq): FAQ update #1291

Merged
merged 18 commits into from
Jun 12, 2019
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion docs/src/views/FAQ.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,35 @@ const Answer = props => <p>{props.content}</p>

export default () => (
<DocPage title="FAQ">
<Header as="h2" content="Content" />
<ul>
<li>
{link('General', '#General')}
<ul>
<li>{link('Does Stardust support mobile?', '#does-stardust-support-mobile')}</li>
<li>
{link(
"How can @mixins be used in the Stardust's styles?",
'#how-can-mixins-be-used-in-the-stardusts-styles',
)}
</li>
<li>
{link('How to use Links and React-Router?', '#how-to-use-links-and-react-router')}
</li>
<li>
{link(
'How can I set default value of Form.Field?',
'#how-can-i-set-default-value-on-form-field',
)}
</li>
</ul>
{link('Teams Specific', '#teams-specific')}
<ul>
<li>{link('How to add Icons to Stardust?', '#how-to-add-icons-to-stardust')}</li>
</ul>
</li>
</ul>

<Category content="General" />
<Question content="Does Stardust support mobile?" />
<Answer content="No. Scope is limited to Web / Desktop at present." />
Expand All @@ -24,7 +53,7 @@ export default () => (
"
/>

<Question content="How to use Links and React-Router" />
<Question content="How to use Links and React-Router?" />
<Answer
content={
<p>
Expand All @@ -40,6 +69,20 @@ export default () => (
}
/>

<Question content="How can I set default value of Form.Field?" />
<Answer
content={
<p>
You need to set the default value on the input slot.
<CodeSnippet
value={`
<Form.Field control={{as: Input, defaultValue:'some value'}} />
`}
/>
</p>
}
/>

<Category content="Teams Specific" />
<Question content="How to add Icons to Stardust" />
<Answer
Expand Down