Simple FAQ
A heading over questions that open to show their answers.
A heading over questions that open to show their answers.
npm install @mantine/core
First time with Mantine UI? Set it up once.
/**
* Component from Mantine UI, https://ui.mantine.dev
* MIT License, Copyright (c) 2022 Vitaly Rtischev. Full text: https://github.com/mantinedev/ui.mantine.dev/blob/master/LICENCE
* Changed for Tastebud: the placeholder answer is new.
*/
import { Accordion, Container, Title } from '@mantine/core';
import classes from './FaqSimple.module.css';
const placeholder =
'This is where the answer goes. Keep it to two or three short sentences, link to a longer guide when a topic needs more, and finish with the one thing the reader should do next.';
export function FaqSimple() {
return (
<Container size="sm" className={classes.wrapper}>
<Title ta="center" className={classes.title}>
Frequently Asked Questions
</Title>
<Accordion variant="separated">
<Accordion.Item className={classes.item} value="reset-password">
<Accordion.Control>How can I reset my password?</Accordion.Control>
<Accordion.Panel>{placeholder}</Accordion.Panel>
</Accordion.Item>
<Accordion.Item className={classes.item} value="another-account">
<Accordion.Control>Can I create more that one account?</Accordion.Control>
<Accordion.Panel>{placeholder}</Accordion.Panel>
</Accordion.Item>
<Accordion.Item className={classes.item} value="newsletter">
<Accordion.Control>How can I subscribe to monthly newsletter?</Accordion.Control>
<Accordion.Panel>{placeholder}</Accordion.Panel>
</Accordion.Item>
<Accordion.Item className={classes.item} value="credit-card">
<Accordion.Control>Do you store credit card information securely?</Accordion.Control>
<Accordion.Panel>{placeholder}</Accordion.Panel>
</Accordion.Item>
<Accordion.Item className={classes.item} value="payment">
<Accordion.Control>What payment systems to you work with?</Accordion.Control>
<Accordion.Panel>{placeholder}</Accordion.Panel>
</Accordion.Item>
</Accordion>
</Container>
);
}
/**
* Component from Mantine UI, https://ui.mantine.dev
* MIT License, Copyright (c) 2022 Vitaly Rtischev. Full text: https://github.com/mantinedev/ui.mantine.dev/blob/master/LICENCE
*/
.wrapper {
padding-top: calc(var(--mantine-spacing-xl) * 2);
padding-bottom: calc(var(--mantine-spacing-xl) * 2);
min-height: 650px;
}
.title {
margin-bottom: calc(var(--mantine-spacing-xl) * 1.5);
}
.item {
border-radius: var(--mantine-radius-md);
margin-bottom: var(--mantine-spacing-lg);
border: 1px solid light-dark(var(--mantine-color-gray-3), var(--mantine-color-dark-4));
}
Changed for this site: The placeholder answer is new.