Skip to content

Commit eef45ce

Browse files
authored
Bootstrap has been replaced by Tailwind in the NextJS generator (#1684)
1 parent 31dbc5b commit eef45ce

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

create-client/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Create Client works especially well with APIs built with the [API Platform](http
2222

2323
## Features
2424

25-
- Generates high-quality ES6:
25+
- Generates high-quality TypeScript:
2626
- list view (with pagination)
2727
- detail view
2828
- creation form
@@ -33,6 +33,6 @@ Create Client works especially well with APIs built with the [API Platform](http
3333
- Client-side validation
3434
- Subscribes to data updates pushed by servers supporting [the Mercure protocol](https://mercure.rocks)
3535
- Displays server-side validation errors under the related input (if using API Platform Core)
36-
- Integration with [Bootstrap](https://getbootstrap.com/) and [FontAwesome](https://fontawesome.com/) (Progressive Web Apps)
36+
- Integration with [Tailwind CSS](https://tailwindcss.com) (NextJS) or [Bootstrap](https://getbootstrap.com/) and [FontAwesome](https://fontawesome.com/) (other generators)
3737
- Integration with [React Native Elements](https://react-native-training.github.io/react-native-elements/)
3838
- Accessible to people with disabilities ([ARIA](https://www.w3.org/WAI/intro/aria) support in webapps)

create-client/nextjs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ npm install isomorphic-unfetch formik react-query
3535
yarn add isomorphic-unfetch formik react-query
3636
```
3737

38+
The generated HTML will contain [Tailwind CSS](https://tailwindcss.com) classes.
39+
Optionnaly, [follow the Tailwind installation guide for NextJS projects](https://tailwindcss.com/docs/guides/nextjs)
40+
(Tailwind is preinstalled in [the API Platform distribution](../distribution/index.md))
41+
3842
## Generating Routes
3943

4044
If you use the API Platform distribution, generating all the code you need for a given resource is as simple as running the following command:

distribution/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ You can also choose to generate the code for a specific resource with the `--res
762762
`pnpm create @api-platform/client --resource books`).
763763

764764
The generated code contains a list (including pagination), a delete button, a creation and an edition form. It also includes
765-
[Bootstrap](https://getbootstrap.com) markup and [ARIA roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA)
765+
[Tailwind CSS](https://tailwindcss.com) classes and [ARIA roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA)
766766
to make the app usable by people with disabilities.
767767

768768
If you prefer to generate a PWA built on top of another frontend stack, read [the dedicated documentation](../create-client/index.md).

0 commit comments

Comments
 (0)